Below are the codes that I have written. My goal is to use a script to configure the parameters of the swiper slider.
<swiper-container [options]="recentPostSliderOpts" class="discover-top-banner">
<swiper-slide *ngFor="let toplatestpost of toplatestposts">
<!-- Some Codes Here Cut Short -->
</swiper-slide>
</swiper-container>
Here is my TypeScript code snippet.
import { Swiper, SwiperOptions } from 'swiper/types';
recentPostSliderOpts: SwiperOptions = {
slidesPerView: 3,
}
The [options] attribute is not functioning as expected based on the Ionic Framework guide available at https://ionicframework.com/docs/angular/slides. It worked fine with Swiper 9 but seems to be causing issues with Swiper 11. I have referred to the official documentation on the SwiperJS website but could not find a solution. I also attempted using [config] without success.
If anyone has some insights or suggestions, I would greatly appreciate your help!