element on dp change function timeout function scope apply function da

1
2
3
4
5
6
7
8
9
element.on("dp.change", function (e) {
$timeout( function (){
$scope.$apply(function (){
e.date._isDate = true;
ngModelCtrl.$setViewValue(e.date, e);
});
},0);
});