We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7d24c5 commit d29034dCopy full SHA for d29034d
src/date.js
@@ -56,7 +56,7 @@ angular.module('ui.date', [])
56
57
// Update the date picker when the model changes
58
controller.$render = function () {
59
- var date = controller.$viewValue;
+ var date = controller.$modelValue;
60
if ( angular.isDefined(date) && date !== null && !angular.isDate(date) ) {
61
throw new Error('ng-Model value must be a Date object - currently it is a ' + typeof date + ' - use ui-date-format to convert it from a string');
62
}
0 commit comments