angular-bootstrap-lightbox icon indicating copy to clipboard operation
angular-bootstrap-lightbox copied to clipboard

Use LightBox with two different imageUrl

Open GaboDot opened this issue 6 years ago • 0 comments

Hi, first congrats for this awesome plugin, it's exactly what I was looking for.

I already configured it like this:

biokiriApp.config(function(LightboxProvider){ LightboxProvider.templateUrl = site_root + 'assets/templates/lightbox.html'; LightboxProvider.getImageUrl = image => { return site_root + 'assets/images/promos/' + image.imagenPromo; }; });

I'm using it in different views (admin module - products, offers, etc) and I don't know how to get it work because the images for each view are in different locations:

location 1: 'assets/images/promos/' location 2: 'assets/images/products/'

So, is there any way to setup different images routes?

Thanks in advance.

GaboDot avatar Jan 24 '19 18:01 GaboDot