How to create the slides that keep auto play and still auto play when i swipe the slides. The slides is auto playing but when i swipe the slide, the slides is stopping slide. Thanks.
Here is my codes:
Html:
<ion-slides #promoSlider [options]="homeOptions" (change)="onPromoSlideChanged()" >
<ion-slide *ngFor="let promo of promos">
<img *ngIf="promo" src="{{promo.image}}" style="width:300px;height:300px;margin:auto;display:block" >
</ion-slide>
</ion-slides>
home.ts:
homeOptions = {
initialSlide: 0,
loop: true,
autoplay:2000
};
onPromoSlideChanged() {
alert('ABC');
this.promoSlider.options = this.homeOptions;
this.promoSlider.rapidUpdate();
//What should i do in this method?
};