Javascript 如何在该模块中插入存储?

Javascript 如何在该模块中插入存储?,javascript,angularjs,Javascript,Angularjs,因此,我有以下设置从这个。当我尝试注射时 应用程序在控制台中出现错误 我确实使用ngStorage更新了第20行,如下所示: "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

因此,我有以下设置从这个。当我尝试注射时

应用程序在控制台中出现错误

我确实使用ngStorage更新了第20行,如下所示:

  "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路由器

index.html

编辑:

错误消息


是否将脚本源注入索引中?你能出示你的索引吗。html@BillyMoon添加错误。此外,还添加了当前索引文件。没有脚本源,因为加载是由repo中的工具管理的。我认为对于这个repo,对angular的依赖性是由webpack处理的,但是我对js中的第三方工具非常陌生。您如何在HTML中加载ngStorage的脚本?@camden_kid webpack.config.js不帮您处理吗?
  "dependencies": {
    "angular": "~1.5.0",
    "angular-mocks": "~1.5.0",
    "angular-ui-router": "~0.2.18",
    "lodash": "~4.5.1",
    "ngstorage": "~0.3.10"
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.