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

Lightbox service: support custom inline templates #82

Open victor-o-silva opened 7 years ago

victor-o-silva commented 7 years ago

Support custom inline templates in addition to custom template paths.

angular.module('app').config(function (LightboxProvider) {
  // set a custom template
  LightboxProvider.template = '<h2>Customized</h2><img lightbox-src="{{Lightbox.imageUrl}}"><h2>lightbox</h2>';
});