themyth92 / angular2-lightbox

Lightbox2 port to use with angular2
MIT License
32 stars 18 forks source link

How to show individual image? #53

Closed whitesnow9291 closed 6 years ago

whitesnow9291 commented 6 years ago

Now it only show image album so I would like to know how to show only one image with out navigation

themyth92 commented 6 years ago

Just put one image in your array ?

const src = 'demo/img/image1.jpg';
const caption = 'Image 1 caption here';
const thumb = 'demo/img/image1-thumb.jpg';
const album = {
         src: src,
         caption: caption,
         thumb: thumb
};

this._albums.push(album);

The navigation should be removed when you have only 1 image in your album.