ionic-frameworkion-slides

Ionic 5 ion-slides as “Virtual Slides”


I'm using Ionic Framework v5 with ion-slides which are based on Swiper.js which has a virtual property that intelligently loads and unloads data from the DOM based on where in a list of items you are.

I can't find any information about how this would be implemented in Ionic though. Any pointers would be greatly appreciated. Thank you.


Solution

  • ion-slides has an options property which you can use to pass additional parameters to Swiper.

    The second option is to use Swiper directly. I've had to do that in the past because of problems with some custom options.