AngularJS--[ng:areq] Argument 'xxCtrl' is not a function, got undefined!错误
在angular中文社区群中,有时会听见某些同学问关于”ng:areq“的错误:
[ng:areq] Argument 'DemoCtrl' is not a function, got undefined!
这往往是因为忘记定义controller或者是声明了多次module,多次声明module会导致前边的module定义信息被清空,所以程序就会找不到已定义的组件。这我们也能从angu
转载
2017-03-03 09:48:27 ·
5510 阅读 ·
0 评论