My solution is to use the directive to fix the problem minus 1, and also to format the view and model values:
app.directive('ngBootstrapFix',['$filter', function($filter) {
return {
require: 'ngModel',
priority: 1,
link: function($scope, $element, $attrs, ngModelCtrl) {
ngModelCtrl.$parsers.push(function(viewValue) {
viewValue = $filter('date')(viewValue, 'yyyy-MM-dd');
return viewValue;
});
ngModelCtrl.$render = function() {
var val = $filter('date')(ngModelCtrl.$viewValue, 'dd/MM/yyyy');
$element.val(val);
};
}
};
}]);
source
share