Skip to content

dateChanged callback

kekeh edited this page May 26, 2019 · 1 revision
<input angular-mydatepicker [(ngModel)]="model" [options]="myDatePickerOptions" 
    #dp="angular-mydatepicker" (dateChanged)="onDateChanged($event)"/>
import {IAngularMyDpOptions, IMyDateModel} from 'angular-mydatepicker';

export class MyApp {
    myDatePickerOptions: IAngularMyDpOptions = {
        // options here...
    }

    constructor() {}

    onDateChanged(event: IMyDateModel) {
        console.log('onDateChanged(): ', event);
    }
}