compact / angular-bootstrap-lightbox

An AngularJS lightbox built using UI Bootstrap Modal.
http://compact.github.io/angular-bootstrap-lightbox/
MIT License
306 stars 134 forks source link

uibModal service not being injected? #42

Closed jordangraft closed 8 years ago

jordangraft commented 8 years ago

Having the same issue as this user.

This is the console error

Unknown provider: $uibModalProvider <- $uibModal <- Lightbox <- Lightbox

ui.boostrap is being required correctly and used on other elements in the same controller

var accountApp = angular.module('accountApp', [
  'ngRoute',
  'ngResource',
  'messageModule',
  'accountControllers',
  'ui.bootstrap',
  'Devise',
  'braintree-angular',
  'ngFileUpload',
  'bootstrapLightbox',
]);
compact commented 8 years ago

Which version of UI Bootstrap? I think this happens with v0.13.x and below.

jordangraft commented 8 years ago

Yep that was it. I was using ui-bootstrap 0.13.4x and upgrading to 0.14.3x fixed it.

Thank you.