Introduce the supplier into a directive that does not work

I am trying to use angular-bootstrap-lightbox and I need to enter the Lightbox provider into the directive like this

controller: ['Lightbox' , function ($scope, $rootScope, $filter, FileUploader,Lightbox) { 

but this leads to the following error:

 Error: [$injector:unpr] Unknown provider: $uibModalProvider <- $uibModal <- Lightbox <- Lightbox 

any body can help in solving this issue, thanks in advance.

+4
angularjs
Nov 09 '15 at 8:35
source share
4 answers

Problem with ui-boostrap version. You must upgrade ui-bootstrap to 0.14x or higher. See also github ,

+9
Nov 18 '15 at 13:26
source share

If you were unable to update angular-bootstrap past 0.12.0 , make sure your angular-dialog-service is in version 5.2.6 sure (there is no ~ or ^ preceding it!). Reducing angular-dialog-service solved this problem for us.

+2
Jan 07 '16 at 20:48
source share

Refer to this version, it will clear the error:

 <script src="https://angular-ui.imtqy.com/bootstrap/ui-bootstrap-tpls-0.14.3.js"></script> 
+2
Apr 11 '16 at 17:09
source share

Use this cdn script tag in your angular app index

  <script src="https://angular-ui.imtqy.com/bootstrap/ui-bootstrap-tpls-0.14.0.js"></script> 
0
Dec 29 '15 at 5:19
source share



All Articles