0

在 angular4 应用程序中工作,无法在 IE 中加载应用程序。我正在使用以下版本。

Node -v7.2.1
npm -v3.10.10
typescript- v2.2.1
Webpack -v2.2.1 and using ES6 module in tsconfig.json
@angular/core 4.0.0

如何在 IE 中加载 angular2 应用程序。

提前致谢

4

1 回答 1

0

尝试添加到您的 index.html (head 标签的顶部):

<script src="https://raw.githubusercontent.com/angular/angular/66df335998d097fa8fe46dec41f1183737332021/shims_for_IE.js" type="text/plain"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.9/es5-sham.js" type="text/plain"></script>
<meta http-equiv="X-UA-Compatible" content="IE=9;IE=edge;IE=10" />
于 2017-03-22T10:28:31.550 回答