【发布时间】:2017-04-10 20:24:39
【问题描述】:
在 Jhipster v3.9.1 中, 我尝试将模块添加到我的项目中,但我不能。 比如我想添加这个模块http://hakib.github.io/MassAutocomplete/ 所以我运行 bower install angular-mass-autocomplete --save 在我运行 gulp injection:vendor 和 gulp injection:dep 之后
所以 index.html 现在刷新了,模块在那里????
所以当我想使用它时,我尝试添加 .$inject=[] 数组,它不起作用,我尝试在模块旁边使用它,它也不起作用! .module('moduleName', ['mass-autocomplete'])
它总是给我这个错误: angular.js:13920 错误:[$injector:unpr] 未知提供者:mass-autocompleteProvider
我们不能使用 bower 模块或 NPM 模块吗??
谢谢
【问题讨论】:
-
能否提供注入代码?
标签: angularjs spring-boot jhipster