Skip to content

Commit d29034d

Browse files
committed
How validation done changed slightling in 1.3, this implements angular-ui#94
1 parent e7d24c5 commit d29034d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/date.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ angular.module('ui.date', [])
5656

5757
// Update the date picker when the model changes
5858
controller.$render = function () {
59-
var date = controller.$viewValue;
59+
var date = controller.$modelValue;
6060
if ( angular.isDefined(date) && date !== null && !angular.isDate(date) ) {
6161
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');
6262
}

0 commit comments

Comments
 (0)