This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Input date throws required when date is invalid #8374
Closed
Description
When I implement an input date as required and I insert an invalid date like 4/31/1996, then the validation throws a ng-invalid-required but in the documentation the invalid dates are triggered as $error.date:
<span class="error" ng-show="myForm.input.$error.date">Not a valid date!</span>
How is possible to detect when a date is invalid or when was not inserted?