【问题标题】:Is it possible changing angular 1.3.9 to angular 1.6.5(current version)是否可以将 angular 1.3.9 更改为 angular 1.6.5(当前版本)
【发布时间】:2017-08-29 01:14:26
【问题描述】:

我已将 angular 1.3.9 替换为 angular 1.6.5,但出现此控制台错误。

未捕获的错误:[$injector:unpr] 未知的提供者: $$asyncCallbackProvider

我的主要角码没有任何改变。 所有服务和控制器都是相同的。 任何形式的提示将不胜感激。

【问题讨论】:

    标签: javascript angularjs version-control


    【解决方案1】:

    正如 Paul Weber 在 thread right here 中指出的那样,您需要检查您使用的 angular-animate 版本是否与您刚刚更新的 AngularJS 的新版本 (1.6.5) 匹配。

    【讨论】:

    • 很好的提示,我通过你的回答成功了
    【解决方案2】:

    如果服务被注入到你的控制器中,所有服务都应该在数组中,检查一下。

    希望对您有所帮助。

    【讨论】:

    • 所有服务都应该在数组中是什么意思?你能描述得更详细些吗?
    • angular.module('app').factory('CTRLname', ['common', 'entityManagerFactory', 'systemService', 'imageService', dataContext]);函数 dataContext(common, entityManagerFactory, systemService, imageService) { });
    猜你喜欢
    • 1970-01-01
    • 2018-05-25
    • 1970-01-01
    • 2021-12-01
    • 1970-01-01
    • 2020-03-17
    • 1970-01-01
    • 1970-01-01
    • 2020-09-07
    相关资源
    最近更新 更多