bruckwubete / ngx-carousel-3d

Ngx Carousel
7 stars 9 forks source link

Updated the code to work for multiple carousels in a single page #8

Closed srinivasDadhapur closed 4 years ago

srinivasDadhapur commented 5 years ago

in ngx-carousel-3d.component.ts file when takings the $Slides array using jquery it is getting all the elements in a single page the class name 'carousel-3d'. so if we have multiple carousels in a single page then this $slides array will get elements from other carousel also. I have included a slideClass variable where whenever we are using a tag we have to pass this class with slides and options like below.

          <ngx-carousel-3d [slides]="slides" [slideClass]="slideClass" [options]="options"  #carousel>

if we dont pass this class. still the code works but only for one carousel.

bruckwubete commented 4 years ago

Thank you for your contribution