Using ng-change with the picker works as expected, i.e. the function gets called each time when the value changes:
<mdp-date-picker ng-model="..." ng-change="someFunction()"></mdp-date-picker>
Although, this event may get called a lot of times, especially when user will start using the arrows, mouse scroll etc. to change the value. So if upon that change I need to make a server request to check something, I used to use ng-blur event, i.e. to do it after the element loses focus:
<mdp-date-picker ng-model="..." ng-blur="someFunction()"></mdp-date-picker>
Unfortunately, the function defined in ng-blur directive gets never called.
Using ng-change with the picker works as expected, i.e. the function gets called each time when the value changes:
<mdp-date-picker ng-model="..." ng-change="someFunction()"></mdp-date-picker>
Although, this event may get called a lot of times, especially when user will start using the arrows, mouse scroll etc. to change the value. So if upon that change I need to make a server request to check something, I used to use ng-blur event, i.e. to do it after the element loses focus:
<mdp-date-picker ng-model="..." ng-blur="someFunction()"></mdp-date-picker>
Unfortunately, the function defined in ng-blur directive gets never called.