我爱编程

angular Error: [ng:areq]

2017-06-02  本文已影响293人  滚石_c2a6

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

上一篇 下一篇

猜你喜欢

热点阅读