注入到供应商不指示工作 [英] inject provider into directive not working
本文介绍了注入到供应商不指示工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图使用角引导-灯箱,我需要注入灯箱
供应商进入的指令,像这样
I'm trying to use angular-bootstrap-lightbox , and i need to inject Lightbox provider into directive like so
controller: ['Lightbox' , function ($scope, $rootScope, $filter, FileUploader,Lightbox) {
但是这会导致以下错误:
but this is lead to the following error :
Error: [$injector:unpr] Unknown provider: $uibModalProvider <- $uibModal <- Lightbox <- Lightbox
任何机构可以帮助解决这个问题,先谢谢了。
any body can help to resolve this , Thanks in advance .
推荐答案
版本问题与UI的自举。需要升级的用户界面,引导是0.14x以上。看到这个 GitHub的问题以及
Version issue with ui-boostrap. Need to upgrade ui-bootstrap to be 0.14x or above. See this github issue as well
这篇关于注入到供应商不指示工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文