ZouYouShun / ngx-hm-carousel

a light carousel for Angular18+, support mobile touch by hammerJs
https://stackblitz.com/edit/stackblitz-starters-nkd5pk?file=src%2Fmain.ts
MIT License
60 stars 10 forks source link

remove slide dynamically #11

Closed burhan001 closed 5 years ago

burhan001 commented 6 years ago

Hi, how i can remove slide dynamically. Thanks in advance

ZouYouShun commented 6 years ago

Hi @burhan001 , is your mean remove drag animation ? or your mean is to dynamically remove slide drag event?

https://stackblitz.com/edit/ngx-hm-carousel-fade-example

Maybe the second example is what you want.

burhan001 commented 6 years ago

@ZouYouShun slider need to update when new object insert or remove from the array which is bind with the slider

ZouYouShun commented 6 years ago

You can change the *ngFor array item immediate. Example like the third example, you can push item or remove item

https://alanzouhome.firebaseapp.com/package/NgxHmCarousel