Angular2无法在IE11上运行

时间:2017-01-26 07:42:53

标签: angular internet-explorer-11

我也添加了es6shim,但是我在IE11上遇到了错误,而且angular2应用程序无效。

enter image description here

1 个答案:

答案 0 :(得分:0)

尝试将以下内容添加到 index.html

    <!doctype html>
    <html lang="en">
    <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>
相关问题