Fork me on GitHub

Angular报错

报错:
Module 'App' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

解决办法:

angular.module('bookxApp').controller(...) ; 少了依赖 [ ] 双括号

改成这样就行了

angular.module('bookxApp' , [ ] ).controller(...) ; 少了依赖 [ ] 双括号

posted @ 2016-03-21 03:08  _落雨  阅读(869)  评论(0编辑  收藏  举报