How to catch the bootstrap datepicker change event?
Simple solution: Try passing the value:
HTML
ng-change="selectDate(dt)"
JavaScript
$scope.selectDate = function(dt) {
console.log(dt);
}
You could keep an eye on when the $scope
changed.
Something like this:
$scope.startdate;
$scope.$watch("startdate", function(newValue, oldValue) {
console.log("I've changed : ", startdate);
});