ng2-datetime
ng2-datetime copied to clipboard
dateChange is not working
I use this code:
<datetime name="test" (dateChange)="test()" [datepicker]="datepickerOpts" [(ngModel)]="newEvent.start" [timepicker]="timepickerOpts"></datetime>
But the method test() is never called...
I'm not able to check this right now, but as far as I can see in the docs, there is no mention of an event "dateChange".
https://nkalinov.github.io/ng2-datetime/
According to this page, you just need to hook the classical "ngModelChange" event.