This repository was archived by the owner on May 28, 2019. It is now read-only.

Description
I'm using ui-date with ng-model, and in the view the value is changed but in the controller remains undefined or with the value I use to initialize it:
Controller:
$scope.day = new Date;
$scope.dateOptions = {
minDate: '0',
dateFormat: 'yy-mm-dd'
};
$scope.checkSchedule = function () {
};
View:
{{day}}
When I change the selected value, it's reflected in view (I have {{day}} after the datepiccker to see it). But when I submit the form, the value it's in today (because I inicialized as a new Date). And if I remove the inicilization, the value in the submit is undefined