我构建了一个简单的AngularJS 2.0应用程序,可以在Chrome和Firefox中运行良好,但不能在IE或Edge中运行。我已经将一个非常简单的文件归结为失败:
<!DOCTYPE html>
<html>
<head>
<title>Gets out of stack space error in IE Edge Browser</title>
<!--script src="//code.jquery.com/jquery-1.12.0.min.js"></script-->
<script src="//cdnjs.cloudflare.com/ajax/libs/es6-shim/0.33.3/es6-shim.min.js"></script>
<script src="//code.angularjs.org/2.0.0-beta.7/angular2-polyfills.js"></script>
<script src="//code.angularjs.org/2.0.0-beta.7/Rx.umd.js"></script>
<script src="//code.angularjs.org/2.0.0-beta.7/angular2-all.umd.dev.js"></script>
<script>
(function(app) {
app.SetupComponent = ng.core.Component({
selector: 'setup',
directives: [],
template: '<h3>Hey</h3>'
}).Class({
constructor: function() {}
});
app.AppComponent = ng.core.Component({
selector: 'app',
directives: [app.SetupComponent],
template: '<setup></setup>'
}).Class({
constructor: function() {}
});
document.addEventListener('DOMContentLoaded', function() {
ng.platform.browser.bootstrap(app.AppComponent);
});
})(window.app || (window.app = {}));
</script>
</head>
<body>
<app>Loading...</app>
</body>
</html>
&#13;
具体来说,在Chrome或Firefox上,它正确输出&#34;嘿&#34;,但在Windows 10上的IE Edge上,它会获得如下控制台输出:
SCRIPT28:堆栈空间不足
有什么想法吗?