You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
I try to use datepicker in that way: <datepicker ng-model="model.fromDate" ng-model-options="{ getterSetter: true }" ></datepicker>
having $scope.model.fromDate = function(value) {};
I got error like this: Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.
datepicker directive should allow model to be getter/setter function
The text was updated successfully, but these errors were encountered:
Even if you use getter/setter you somehow need a date. So $scope.model.fromDate = function(value) {}; does not return a date. Have you tried e.g. $scope.model.fromDate = function(value) {return new Date()}; ?
I try to use datepicker in that way:
<datepicker ng-model="model.fromDate" ng-model-options="{ getterSetter: true }" ></datepicker>
having
$scope.model.fromDate = function(value) {};
I got error like this:
Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.
datepicker directive should allow model to be getter/setter function
The text was updated successfully, but these errors were encountered: