Я хотел бы использовать точку останова для слайдов swiper JS в Angular 11, чтобы точки останова для разных размеров экрана имели разные общие слайды. PerView, я читал эту документацию из Swiper JS https://swiperjs.com/angular и установите swiper js со страницы https://www.npmjs.com/package/swiper
но я не знаю, как реализовать отзывчивую точку останова в файле компонента ts. Я пытался реализовать этот код ниже, но swiperConfig не работает.
Вот HTML-код
<swiper>
<ng-template [swiperSlide]="swiperConfig" *ngFor="let item of items">
<div class="list-item">
<app-item></app-item>
</div>
</ng-template>
</swiper>
Вот код TS
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-swiper-test',
templateUrl: './swiper-test.component.html',
styleUrls: ['./swiper-test.component.scss']
})
export class SwiperTestComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
public swiperConfig = {
slidesPerView: 'auto',
spaceBetween: 20,
breakpoints:{
992:{
slidesPerView: 4,
}
}
}
}
Спасибо