美文网首页我爱编程
angular Error: [ng:areq]

angular Error: [ng:areq]

作者: 滚石_c2a6 | 来源:发表于2017-06-02 14:10 被阅读293次

angular开发中经常会碰到这种错误:
Error: [ng:areq] http://errors.angularjs.org/1.5.0/ng/areq?p0=aboutController&p1=not%20aNaNunction%2C%20got%20undefined

这与你的angular.module有关。 也许你定义得不正确,或者你有两个同名的modules。 也可能是您创建了一个新模块,并没有将其注入到应用程序中。

It looks like it has something to do with your angular.module. Perhaps you have it defined incorrectly, or defined in two places, or you have two modules with the same name. Could also be that you created a new module and didn't inject it into your application.
https://stackoverflow.com/questions/21673404/error-ngareq-from-angular-controller

原文:https://teamtreehouse.com/community/angular-what-does-this-error-in-the-console-mean

相关文章

网友评论

    本文标题:angular Error: [ng:areq]

    本文链接:https://www.haomeiwen.com/subject/wbhufxtx.html