ng2-datetime
ng2-datetime copied to clipboard
there is no handleDateFromChange!
I have got the following start-end date range fields:
<datetime #startDate name="startDate" [timepicker]="false" [ngModel]="schedule.startDate" (ngModelChange)="handleDateFromChange($event)"></datetime>
<datetime name="endDate" [timepicker]="false" [(ngModel)]="schedule.endDate" [datepicker]="datepickerOpts"></datetime>
and it doesn't work throwing the following error:
ERROR TypeError: _co.handleDateFromChange is not a function
Any thought?
You probably misspelled the name of your own method.