错误:[$ injector:unpr]未知提供者:$ rootscopeProvider< - $ rootscope< - mycontroller

时间:2016-07-29 09:26:05

标签: ionic-framework push-notification

ionic.bundle.js:26794 Error: [$injector:unpr] Unknown provider: $rootscopeProvider <- $rootscope <- Pushctlr
http://errors.angularjs.org/1.5.3/$injector/unpr?p0=%24rootscopeProvider%20%3C-%20%24rootscope%20%3C-%20Pushctlr
    at ionic.bundle.js:13438
    at ionic.bundle.js:17788
    at Object.getService [as get] (ionic.bundle.js:17941)
    at ionic.bundle.js:17793
    at getService (ionic.bundle.js:17941)
    at injectionArgs (ionic.bundle.js:17965)
    at Object.invoke (ionic.bundle.js:17987)
    at $controllerInit (ionic.bundle.js:23397)
    at nodeLinkFn (ionic.bundle.js:22335)
    at compositeLinkFn (ionic.bundle.js:21703)

我正在接受离子推送通知,但我很惊讶这个错误请帮助我。

1 个答案:

答案 0 :(得分:1)

你有拼写错误。

试试这个:$rootScope代替$rootscope