ksachdeva / angular-swiper

Angular directive for nolimits4web/Swiper
Apache License 2.0
197 stars 94 forks source link

Angular Thumbs Gallery #78

Closed xBelabz closed 4 years ago

xBelabz commented 4 years ago

Hi everyone,

Have anyone had any experience using the Thumbs Gallery for Angular, I go this error trying to make it work

Here is my HTML angular code: <swiper [config]="galleryTop">

<swiper [config]="galleryThumbs">

=====================

Here is my config: public galleryThumbs: any = { spaceBetween: 10, slidesPerView: 4, freeMode: true, watchSlidesVisibility: true, watchSlidesProgress: true, }

public galleryTop: any = { spaceBetween: 10, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, thumbs: { swiper: this.galleryThumbs } }

I got this error: Cannot read property 'addClass' of undefined at Swiper.init