I\'m working on angularapplication with Django with rest-framework..
angular
Django
rest-framework
The app receives it\'s info with json from the server.. O
Create a simple directive that converts the model value:
HTML:
Directive:
app.directive('dateInput', function(){ return { restrict : 'A', scope : { ngModel : '=' }, link: function (scope) { if (scope.ngModel) scope.ngModel = new Date(scope.ngModel); } } });