0
我需要在Magento產品頁面上使用Angular.js,但我很快就卡住了,只要我聲明我的應用程序,它就會生成此錯誤:使用Angular與Magento(與prototype.js衝突?)
TypeError: Cannot set property 'aHrefSanitizationWhitelist' of null
at $$SanitizeUriProvider (http://localhost/js/angular/angular.js:18134:35)
at new <anonymous> (http://localhost/js/prototype/prototype.js:391:23)
at Object.instantiate (http://localhost/js/angular/angular.js:4733:14)
at provider (http://localhost/js/angular/angular.js:4547:36)
at http://localhost/js/angular/angular.js:365:32
at forEach (http://localhost/js/angular/angular.js:335:20)
at Object.provider (http://localhost/js/angular/angular.js:4537:9)
at ngModule (http://localhost/js/angular/angular.js:2569:16)
at Object.invoke (http://localhost/js/angular/angular.js:4718:19)
at runInvokeQueue (http://localhost/js/angular/angular.js:4611:35)
我明顯懷疑prototype.js和angular之間有衝突,但到目前爲止找不到任何解決方案。 1/jQuery的 2 /原型 3 /角
任何人有任何暗示:
不同JS文件的順序被加載?或者是不可能實現? 謝謝!
編輯:所以,如果有人有興趣: - Magento的1.9.2.4(這樣的prototype.js 1.7)不與角1.5.8 相處 - 我用角1.4.3和它工作得很好 - 我在這裏停止然後 我使用Angular 1.4而不是1.5使用什麼有意義的東西?
請在您的問題中加入[mcve]。 –