Closed iBasit closed 8 years ago
I'm using require library.
angular-bootstrap-lightbox gets loaded, but when I run the function I get
Lightbox is not defined
I have to use define to load the library and angular controller
define(['app', 'angular-bootstrap-lightbox'], function (app) { "use strict"; app.requires.push('bootstrapLightbox'); app.controller("ctrl", function($scope) { ....
fixed it by app.controller("ctrl", function($scope, Lightbox)
app.controller("ctrl", function($scope, Lightbox)
I'm using require library.
angular-bootstrap-lightbox gets loaded, but when I run the function I get
I have to use define to load the library and angular controller