简体   繁体   中英

Angular2 not working on IE11

I have added es6shim as well but i'm getting above error on IE11 and the angular2 app is not working.

在此处输入图片说明

Try adding the following to 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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM