-1

I cannot make requirejs work with angularjs project and webjars in ie8, ( I dont have error in firefox, chrome).

With ie debug bar I have this error :

Object doesn't support property or method 

In this code :

webjarsAngularjsChildren.forEach(function(child) {    
webjarsAngularjsPaths[child] = webjars.path("angularjs", child);
webjarsAngularjsShim[child] = ["angular", "webjars!angular.js"];
});

this code is generate with requirejs/webjars

forEach loop is compatible with IE 8 ?

how can i fix this problem ?

4

1 回答 1

0

这个问题在这里描述: https ://github.com/angular/angular.js/issues/5201

我在 IE11 的仿真模式下使用 IE8 时遇到了同样的问题。我安装了一个运行 Windows XP 的虚拟机和一个真正的 IE8 并且没有问题。

于 2014-06-24T10:01:44.357 回答