Hey everyone,
I’m trying change date with my slide but don’t work. I’m using moment.js lib
addDate() {
this.currentDate = moment(this.currentDate, this.formatDate).add(1, 'days').format(this.formatDate);
}
<ion-row center>
<ion-slides (ionSlideNextStart)="addDate()" (ionSlidePrevStart)="rmDate()">
<ion-slide>
{{currentDate}}
</ion-slide>
</ion-slides>
</ion-row>
It only adds one day and then it doesn’tt work.
Any help, helps.
Best