Swiper RC5 - options attribute is gone, possible to initialize Swiper instance with option in ts?


#1

Before RC5, I used to have mySlideOptions variable and used it to initialise the swiper in the HTML file like this:

<ion-slides #mySlider [options]="mySlideOptions">

Now [options] has been removed. Is there a way to initialise the Swiper instance in the TS file and then used it in HTML?

As it is shown on this link: https://github.com/nolimits4web/Swiper/blob/master/demos/04-space-between.html

    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        paginationClickable: true,
        spaceBetween: 30,
    });