Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular2不在IE11上工作_Angular_Internet Explorer 11 - Fatal编程技术网

Angular2不在IE11上工作

Angular2不在IE11上工作,angular,internet-explorer-11,Angular,Internet Explorer 11,我也添加了es6shim,但我在IE11上遇到了上述错误,angular2应用程序无法工作 尝试将以下内容添加到index.html: <!doctype html> <html lang="en"> <script src="https://raw.githubusercontent.com/angular/angular/66df335998d097fa8fe46dec41f1183737332021/shims_for_IE.js" t

我也添加了es6shim,但我在IE11上遇到了上述错误,angular2应用程序无法工作


尝试将以下内容添加到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>


可能重复@Roy,错误中特别提到zone.js,但事实并非如此。我已经安装了最新的zone.js,但仍然无法正常工作。请尝试在html标记@YoavSchniederman下添加索引您提供的第一个html标记未找到它给我以下错误
SEC7112:Script fromhttps://raw.githubusercontent.com/angular/angular/66df335998d097fa8fe46dec41f1183737332021/shims_for_IE.js 由于mime而被阻止键入不匹配的localhost:3000
好的,如果您的客户端代码在java play的服务器代码中,您需要删除安全块,这是什么意思?您使用的是哪种服务器环境?我不知道,但我想这是webpack。这是前端,所以我很困惑??