I am using this datetime picker in angular.
Inside of a controller I have:
In my HTML I have:
<div id="#picker" > <input type='text' style="font-size:10pt;" class="rptv-input" placeholder="Start Time" ng-model='adate' ng-change="datechange()" /> <span class="input-group-addon"> <span class="glyphicon glyphicon-calendar"></span> </span> </div>
Everything is managed by a controller "AppController".
The problem is, when I select a date on the calendar by click, it does not trigger any "change" event (in other words, datechange is not fired). If I do a watch on ng-model "adate", it also does not seem to trigger it. If I type in the text box, then the scope variable changes.
How can I detect changes on the text box if the user clicks on a date in the selector to change it?