Hi All
Change event is not working in the following code. Earlier it was working in beta 7. Please help
ion-datetime displayFormat=“YYYY-MM-DD” (change)=“changeDate(birthDate)” [(ngModel)]=“birthDate”
Hi All
Change event is not working in the following code. Earlier it was working in beta 7. Please help
ion-datetime displayFormat=“YYYY-MM-DD” (change)=“changeDate(birthDate)” [(ngModel)]=“birthDate”
see the changelog
It worked. thanks a lot
just a question here… I see this in many places but never understand why? Why do you pass your “birthDate” as parameter in your function changeDate if you define as 2way binding on your element with [(ngModel)]=“birthDate”?
You would get the value inside your function even if you don’t pass it as a parameter.
changeDate(birthDate) {
// this.birthDate and birthDate should be the same value?
}
Hi manuvaldes, the link is crashed, do you tell me the solution?
Thank you
Hi @skoff I think it’s good design, becuase:
For anyone else coming here through google and getting a 404 on the solution link above… The solution is to use (ionChange) instead of (change)
hi, how to clear ion-datetime after choosing a date… there are only 2 buttons , done and cancel…but none of them clears the input !!!
I hijacked the Cancel button to do this - I changed the text to “Clear” and used (ionCancel)=“clearTimeFilter()”. If they want to Cancel then they can click somewhere else on the screen
Hey, great there!..
thanks