vdanyliv / ngx-tiny-slider

Angular wrapper for tiny-slider
https://npmjs.com/package/ngx-tiny-slider
MIT License
15 stars 18 forks source link

Slider not working when nested *ngFor is used #31

Closed muzammilversiani closed 3 years ago

muzammilversiani commented 4 years ago

Hi there,

I am trying to add items dynamically using *ngFor loop. Basically I am dividing each item in 2 columns and under each column, I am adding 2 elements. I am trying to make it run but getting error "No slide found".

Here is the code: https://stackblitz.com/edit/angular-ivy-zcb1t4

Thank you

LionelENSFELDER commented 3 years ago

Same here doesn't work with ngFor `<ngx-tiny-slider [config]="tinySliderConfig"> <ng-container class="items" ngFor="let movie of trendingMovies">

</ng-container>

`

vdanyliv commented 3 years ago

take a look at the example https://codesandbox.io/s/ngx-tiny-slider-wait-for-dom-gvvqh?file=/src/app/app.component.html