所以我从这个repo得到了以下设置。当我尝试在ngStorage
中注入the code at line 3:时module.exports = angular.module('greatestApp.showroom', [
'greatestApp.catService', 'ngStorage'
])
该应用在控制台中出错。
我确实使用ngStorage更新了第20行的bower.json dependencies,如下所示:
"dependencies": {
"angular": "~1.5.0",
"angular-mocks": "~1.5.0",
"angular-ui-router": "~0.2.18",
"lodash": "~4.5.1",
"ngstorage": "~0.3.10"
我做错了什么?该应用程序使用Angular的ui-router。
的index.html
https://github.com/pmachowski/production-angular-webpack-gulp/blob/master/src/index.html
编辑:
错误消息
Error: [$injector:modulerr] Failed to instantiate module greatestApp.showroom due to:
Error: [$injector:modulerr] Failed to instantiate module ngStorage due to:
Error: [$injector:nomod] Module 'ngStorage' 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.