我已经成功部署了我的angular 2应用程序。
用户通过https://www.polsannet.com/webapp/访问应用程序
但是,IE用户反复报告他们无法查看登录页面。感谢您的帮助。提前谢谢。
更新1:在添加了提到的脚本后,应用程序现在路由到pagenotfound组件。同样,仅在IE上。更新2:在部署到prod时,可以在http://localhost:4200上与IE很好地工作。IE仍然无法启动。
polyfills.ts
// This file includes polyfills needed by Angular 2 and is loaded before
// the app. You can add your own extra polyfills to this file.
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/set';
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';
import 'zone.js/dist/zone';发布于 2017-06-16 19:45:26
您应该将IE浏览器的垫片添加到index.html文件中。
对于我来说(2.4.0版本中的应用程序)帮助了这些脚本:
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.33.3/es6-shim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.20/system-polyfills.js"></script>
<script src="https://npmcdn.com/angular2/es6/dev/src/testing/shims_for_IE.js"></script>将它们插入到主html的head标签中。我想它甚至对IEv9也有帮助
https://stackoverflow.com/questions/44588169
复制相似问题