为了账号安全,请及时绑定邮箱和手机立即绑定

双向数据绑定(2);我按照一摸一样的的编码会有下面的报错求解

Uncaught Error: [$injector:modulerr] Failed to instantiate module bookStoreApp due to:

Error: [$injector:modulerr] Failed to instantiate module bookStoreServices due to:

Error: [$injector:nomod] Module 'bookStoreServices' 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.

http://errors.angularjs.org/1.4.5/$injector/nomod?p0=bookStoreServices

    at REGEX_STRING_REGEXP (file:///C:/Users/Administrator/Desktop/angular/js/angular.js:68:12)

    at file:///C:/Users/Administrator/Desktop/angular/js/angular.js:1983:17

    at ensure (file:///C:/Users/Administrator/Desktop/angular/js/angular.js:1907:38)

    at module (file:///C:/Users/Administrator/Desktop/angular/js/angular.js:1981:14)

    at file:///C:/Users/Administrator/Desktop/angular/js/angular.js:4385:22

    at forEach (file:///C:/Users/Administrator/Desktop/angular/js/angular.js:336:20)

    at loadModules (file:///C:/Users/Administrator/Desktop/angular/js/angular.js:4369:5)

    at file:///C:/Users/Administrator/Desktop/angular/js/angular.js:4386:40

    at forEach (file:///C:/Users/Administrator/Desktop/angular/js/angular.js:336:20)

    at loadModules (file:///C:/Users/Administrator/Desktop/angular/js/angular.js:4369:5)

http://errors.angularjs.org/1.4.5/$injector/modulerr?p0=bookStoreServices&p…A%2FUsers%2FAdministrator%2FDesktop%2Fangular%2Fjs%2Fangular.js%3A4369%3A5)

    at REGEX_STRING_REGEXP (file:///C:/Users/Administrator/Desktop/angular/js/angular.js:68:12)

    at file:///C:/Users/Administrator/Desktop/angular/js/angular.js:4408:15

    at forEach (file:///C:/Users/Administrator/Desktop/angular/js/angular.js:336:20)

    at loadModules (file:///C:/Users/Administrator/Desktop/angular/js/angular.js:4369:5)

    at file:///C:/Users/Administrator/Desktop/angular/js/angular.js:4386:40

    at forEach (file:///C:/Users/Administrator/Desktop/angular/js/angular.js:336:20)

    at loadModules (file:///C:/Users/Administrator/Desktop/angular/js/angular.js:4369:5)

    at createInjector (file:///C:/Users/Administrator/Desktop/angular/js/angular.js:4294:11)

    at doBootstrap (file:///C:/Users/Administrator/Desktop/angular/js/angular.js:1655:20)

    at bootstrap (file:///C:/Users/Administrator/Desktop/angular/js/angular.js:1676:12)

http://errors.angularjs.org/1.4.5/$injector/modulerr?p0=bookStoreApp&p1=Err…%2FUsers%2FAdministrator%2FDesktop%2Fangular%2Fjs%2Fangular.js%3A1676%3A12)


正在回答

3 回答

或者说你加入了依赖 而却没有实现'bookStoreServices'的模块

0 回复 有任何疑惑可以回复我~

'bookStoreServices'  这个module没有加入到依赖吧?

就是下边这个中括号中 是否加入了'bookStoreServices' 

var appModule = angular.module("AppModule", ["HelloAngular", "ngRoute"]);

0 回复 有任何疑惑可以回复我~

我也遇到了这个错误

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
AngularJS实战
  • 参与学习       205465    人
  • 解答问题       1158    个

一起学习AngularJS的基础教程,通过实例学习并学会AngularJS

进入课程

双向数据绑定(2);我按照一摸一样的的编码会有下面的报错求解

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信