I\'m working on angularapplication with Django with rest-framework..
The app receives it\'s info with json from the server.. O
In addition to PSL's answer. This is how to override angular 1.3+ requirements to be a Date object.
app.directive('dateFormat', function() {
return {
require: 'ngModel',
link: function(scope, element, attr, ngModelCtrl) {
//Angular 1.3 insert a formater that force to set model to date object, otherwise throw exception.
//Reset default angular formatters/parsers
ngModelCtrl.$formatters.length = 0;
ngModelCtrl.$parsers.length = 0;
}
};
});
It can be used with AngularFire $firebaseObject and works fine with $bindTo 3-way binding. No need to extend $firebaseObject service. It works in Ionic/cordova applications.
Working example on jsfiddle
Based on this answer