Somehow the swiper unable to to listen to any event change like “slideChange”. What is the issue?
<swiper-container [modules]="swiperModules" [direction]="'vertical'" [pagination]="swiperPagination" [virtual]="swiperVirtual" (slideChange)="onSlideChange()" #swiperRef >
<swiper-slide *ngFor="let item of slides">Slide {{item}}</swiper-slide>
</swiper-container>
I already follow the migration section in ionic framework to setup for the swiper 11.0.3 with standalone app.
SOLVED
I had the same issue, but as you can also see here Swiper Element (WebComponent) you have to use the (swiperslidechange) event not (slidechange), so:
From this:
<swiper-container [modules]="swiperModules" [direction]="'vertical'" [pagination]="swiperPagination" [virtual]="swiperVirtual" (slideChange)="onSlideChange()" #swiperRef >
<swiper-slide *ngFor="let item of slides">Slide {{item}}</swiper-slide>
</swiper-container>
To this:
<swiper-container [modules]="swiperModules" [direction]="'vertical'" [pagination]="swiperPagination" [virtual]="swiperVirtual" (swiperslidechange)="onSlideChange()" #swiperRef >
<swiper-slide *ngFor="let item of slides">Slide {{item}}</swiper-slide>
</swiper-container>
1 Like