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 87bc3d1 commit a260e54Copy full SHA for a260e54
1820EN_09_Code/06_jQuery_datepicker_directive/directive.js
@@ -42,9 +42,7 @@ angular.module('date-picker-directive', [])
42
43
ngModelCtrl.$formatters.push(function(date) {
44
if ( angular.isDefined(date) && date !== null && !angular.isDate(date) ) {
45
- throw new Error(
46
- 'ng-Model value must be a Date object - currently it is a ' + typeof date +
47
- ' - use ui-date-format to convert it from a string');
+ throw new Error('ng-Model value must be a Date object - currently it is a ' + typeof date);
48
}
49
return date;
50
});
0 commit comments