lukasz-galka / ngx-gallery

Angular image gallery plugin
https://lukasz-galka.github.io/ngx-gallery-demo/
MIT License
436 stars 171 forks source link

How to get details of active image? #301

Closed charlenebuena closed 4 years ago

charlenebuena commented 4 years ago

There is only the CSS styling for active image. How to get the data bound for an active image?

charlenebuena commented 4 years ago

Found it. Was able to get through the active index.

@ViewChild('gallery', {static: false}) gallery: NgxGalleryComponent;
console.log(this.gallery.selectedIndex);