In rc.0, how to use lockSwipe of Swiper object to prevent slide in first or last slide?


#1

I have get swiper object through ViewChild.


#2

define slides options BEFORE your constructor by specifing onlyExternal to true like this
sliderOptions = {
onlyExternal: true
};

the use this option object as options of your ion-slides
<ion-slides #mySlides [options]=“this.sliderOptions”>

for more info check these links


http://idangero.us/swiper/api/#.WCmci3Gg_Dc