kolkov / ngx-gallery

A simple responsive native gallery component for Angular 8+.
https://ngx-gallery.kolkov.ru/
MIT License
115 stars 56 forks source link

gallery show() method #39

Open wakatanka opened 4 years ago

wakatanka commented 4 years ago

i, i've made a vertical thumbnails row of images with the same index of ngx-gallery, if i click on it using the methods showNext and ShowPrev works flawless, but if i use show(index), nothing happens. Any suggestions?

thanks

wakatanka commented 4 years ago

bump, any ideas?

OlenaRodzen commented 3 years ago

@kolkov show(index) changes selectedIndex, but this change is not detected by angular, because of ChangeDetectionStrategy.OnPush https://github.com/kolkov/ngx-gallery/blob/master/projects/gallery/src/lib/ngx-gallery.component.ts#L32

chinmunwah commented 2 years ago

Show method will not navigate the display the image based on the index. Unless I hover on the gallery