@msharaf wrote:
ion-slides doesn’t support virtual dom as swiper api do
https://idangero.us/swiper/api/#virtuali am able to get it to work by reinitiation the swiper object
is there is anyone has the luck to get it to work by just passing the options
or am I missing anything<ion-slides [options]="{virtual:{slides:['slide1','slide2']}}" > let slider = new Swiper('.swiper-container', { virtual: { slides: (function () { const slides = []; for (let i = 0; i < 2000; i++) { slides.push('<img src="assets/' + i + '.png" class="slide-image swiper-slide">'); } return slides; }()), }, });
Posts: 1
Participants: 1