Angular 2 is not working on ie 9

北战南征 提交于 2019-12-13 18:31:53

问题


I've been trying to run an Angular 2 application as a template but while it works really well in Chrome and after adding polyfills it worked on IE 10 and 11 I'm struggling to get it working in IE9!

I added Shims polyfills for IE.

<!--[if IE]>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.35.3/es6-shim.js"></script>
    <script src="node_modules/systemjs/dist/system-polyfills.js"></script>
    <script src="https://npmcdn.com/angular2/es6/dev/src/testing/shims_for_IE.js"></script>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/2014.01.31/classList.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/blob-polyfill/1.0.20150320/Blob.min.js"></script>
    <script type="text/javascript" src="assets/js/typedarray.js"></script>
    <script type="text/javascript" src="assets/js/formdata.js"></script>

  <![endif]-->

I am getting this error http://prntscr.com/eeytvq

来源:https://stackoverflow.com/questions/42548126/angular-2-is-not-working-on-ie-9

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!