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 Apr 12, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ngModel parse errors always use named parser #10076
For our core parsers, we use a private / undocumented property called $$parserName, so that the $error is named, e.g. $error.date. Other parsers will always set $error.parse. When you have something like this:
the $error will nevertheless be date, because the $$parserName is set in the link function, and $$runValidators will always use the $$parserName if it is set.
For our core parsers, we use a private / undocumented property called
$$parserName, so that the $error is named, e.g.$error.date. Other parsers will always set$error.parse. When you have something like this:where myParser adds:
the
$errorwill nevertheless bedate, because the$$parserNameis set in the link function, and $$runValidators will always use the$$parserNameif it is set.