ng2-datetime icon indicating copy to clipboard operation
ng2-datetime copied to clipboard

dateChange is not working

Open alienriquebm opened this issue 8 years ago • 1 comments

I use this code:

<datetime name="test" (dateChange)="test()" [datepicker]="datepickerOpts" [(ngModel)]="newEvent.start" [timepicker]="timepickerOpts"></datetime>

But the method test() is never called...

alienriquebm avatar Jun 08 '17 17:06 alienriquebm

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.

wartab avatar Jun 09 '17 09:06 wartab