Closed stefanaerts closed 7 years ago
Currently it does fire ngModelChange
event.
https://github.com/ng2-ui/ng2-datetime-picker/blob/master/src/ng2-datetime-picker.directive.ts#L49
Thank you @allenhwkim for your fast responses. It works nice with the (ngModelChange)="setTextValue($event)" I have almost a nice progressive/mobile webapp finished with several nice features:
And all of this for free, viva open source.
How can i call a method when the popup is closed/value of the inputfield is changed wiht a new selected date? So i want to update another variable with the date i get when selected. methods like onchange="myfunction(this.value)" do not seem to work. As you can see in the pciture below i want to update the label above with the new selected date on close.![image](https://cloud.githubusercontent.com/assets/3684599/21813407/693def26-d756-11e6-975c-fe37b403592c.png)
How can i do that?