I am trying to execute a function every time the user selects a new datetime. Right now, I am trying to use (ngModelChange)
but this keeps executing the function passing in the prior value and not the current value. Any ideas would be greatly appreciated thanks!
<ion-item>
<ion-label>Start Time</ion-label>
<ion-datetime displayFormat="h:mm a" (ngModelChange)="calcStartEndTime(day.index)" [(ngModel)]="day.startDate"></ion-datetime>
</ion-item>