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

ability to set the template on the fly? #69

Closed phazei closed 7 years ago

phazei commented 7 years ago

It seems the template has to be provided in the config so it's not possible to have different templates in different sections of a site if it's used for multiple various things.

Could we get this ability?

phazei commented 7 years ago

Oh, never mind, it can all be sent as the 3rd param for the modal options

            Lightbox.openModal($scope.images, index, {
                templateUrl: "lightbox/custom-template.html"
            });