In AngularJS, I have on the DOM side:
<input class="form-control" type="date" ng-model="scope.status.date"
ng-change="scope.reloadDay()" ng-model-options="{debounce:200}">
In the back I have a function:
scope.changeDate = function() {
var current_date = scope.status.date;
current_date.setDate(current_date.getDate() - 1);
scope.status['date'] = current_date;
}
This results that indeed scope.status.date
is updated, but in the input box it stays the same.
What is happening here?