AngularJS 1.5错误引导IBM Mobilefirst

前端之家收集整理的这篇文章主要介绍了AngularJS 1.5错误引导IBM Mobilefirst前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我似乎在组合MFP混合(无cordova)应用程序和角度1.5的问题上有问题.与1.4.1相同的应用程序工作正常,但如果我切换到angular1.5,那么我得到这个错误
Error: [$injector:modulerr] Failed to instantiate module ng due to:
TypeError: Cannot set property 'aHrefSanitizationWhitelist' of null
at $$SanitizeUriProvider (http://localhost:10080/Hybrid/apps/services/preview/HelloWorld/android/1.0/default/vendor/angular5.js:17272:35)
at new <anonymous> (http://localhost:10080/Hybrid/apps/services/preview/HelloWorld/android/1.0/default/worklight/worklight.js:1033:23)
at Object.instantiate (http://localhost:10080/Hybrid/apps/services/preview/HelloWorld/android/1.0/default/vendor/angular5.js:4621:14)
at provider (http://localhost:10080/Hybrid/apps/services/preview/HelloWorld/android/1.0/default/vendor/angular5.js:4435:36)
at http://localhost:10080/Hybrid/apps/services/preview/HelloWorld/android/1.0/default/vendor/angular5.js:367:32
at forEach (http://localhost:10080/Hybrid/apps/services/preview/HelloWorld/android/1.0/default/vendor/angular5.js:337:20)
at Object.provider (http://localhost:10080/Hybrid/apps/services/preview/HelloWorld/android/1.0/default/vendor/angular5.js:4425:9)
at ngModule (http://localhost:10080/Hybrid/apps/services/preview/HelloWorld/android/1.0/default/vendor/angular5.js:2476:16)
at Object.invoke (http://localhost:10080/Hybrid/apps/services/preview/HelloWorld/android/1.0/default/vendor/angular5.js:4606:19)
at runInvokeQueue (http://localhost:10080/Hybrid/apps/services/preview/HelloWorld/android/1.0/default/vendor/angular5.js:4499:35)
http://errors.angularjs.org/1.5.0/$injector/modulerr?p0=ng&p1=TypeError%3A%…%2FHelloWorld%2Fandroid%2F1.0%2Fdefault%2Fvendor%2Fangular5.js%3A4499%3A35)

任何人都知道可能是什么?

当我升级到角度1.5.0时,我有完全相同的问题.
问题原来是与我们在代码中使用的Function.prototype.bind的自定义实现一样,它看起来像是干涉定义在角度的那个.

在你的错误callstack的第二行

at new <anonymous> (http://localhost:10080/Hybrid/apps/services/preview/HelloWorld/android/1.0/default/worklight/worklight.js:1033:23)

我认为worklight.js可能有一个prototype.bind的实现,它与一个角色不兼容(见https://code.angularjs.org/1.5.0/docs/api/ng/function/angular.bind)

原文链接:https://www.f2er.com/angularjs/142843.html

猜你在找的Angularjs相关文章