I've run into a snag with the datepicker and ng-change functionality. Oddly enough, the ng-change event isn't triggering when I manually select a date by clicking on it, but it works fine when I input a date manually.
Take a look at my code snippet.
<input ng-change="date_change();" ng-model="date_to" id="recon-date" name= "date_to" type="text" class="form-control" date-time view="month" auto-close="true" min-view="month" format="MM-DD-YYYY">
After digging into the datepicker.js file, it seems like the issue lies with ngModelController.setViewValue() and $render() not firing the ng-change event as expected.
I attempted to use scope.$apply(), but unfortunately, it didn't solve the problem. I've been trying to troubleshoot this for hours with no success.
P.S. I'd prefer not to resort to using $scope.$watch() to resolve this issue.
Thanks so much!!