角度js不工作,即11

ie 11工作angular js我有问题

TypeError:在链接( ves-min.js:490:7 )的严格模式下,不允许在只有Anonymous function (angular.js:7079:34)的严格模式下赋值为只读属性在ves-min.js:490:7enter code here nodeLinkFn (angular.js:6677:13)compositeLinkFn (angular.js:6071:13 )at publicLinkFn (angular.js:5967:30) at link (angular-route.js:919:7) at boundTranscludeFn (angular.js:6091:9)

请帮我解决一下,谢谢。

在头标记中添加此行并进行刷新,当它要求“允许块内容”时单击“是”。

  

可能是以下问题:

AngularJS控制器和“使用严格”

也许只是IE 11尊重严格模式,这意味着如果您执行以下操作:

 (function () { "use strict"; function webAddressController($scope, $rootScope, web_address_service) { // Do things } }()); 

webAddressController函数不在全局范围内供Angular选择(使用自执行语法的目的是避免向全局范围添加内容)。

所以,你可能想尝试类似的东西:

 (function (angular) { "use strict"; angular.module('myApp').controller('webAddressController', function($scope) { // Do things }); }(window.angular));​