我正在創建一個名爲X的涼亭包,它取決於angular-local-storage
。 我在bower.json
中保存了angular-local-storage
。 angular.module('X', ['LocalStorageModule']);
如何設置涼亭軟件包依賴關係?
的服務爲:
angular
.module('X')
.service('XService', XService);
function XService($resource, $q, $window, LocalStorageService) {...}
當我安裝在另一個項目涼亭包X,沒有發現LocalStorageModule
作爲
我的模塊聲明。
我該如何管理這種依賴關係?
編輯:錯誤是:
Unknown provider: LocalStorageServiceProvider <- LocalStorageService <- XService
'LocalStorageModule'在主列表中,當我將該指令添加到視圖時,我仍然有錯誤。 (lib也包含在index.html中)我只是注意到該指令包含index.html,所以角度依賴關係設置了兩次:'警告:試圖加載角度不止一次.'''''''''' – Gura
當您安裝此模塊時鮑爾要求你更新一些依賴關係! (堅持)?讓我看看bower.json和index.html – que1326