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 has been archived by the owner on Sep 8, 2020. It is now read-only.
I need to have one function that validates a field that can have multiple error types. Splitting this validator to multiple separate functions is not practical due to the amount of code required to parse this input. I have created a my own variation of the uiValidate directive with instead of:
I need to have one function that validates a field that can have multiple error types. Splitting this validator to multiple separate functions is not practical due to the amount of code required to parse this input. I have created a my own variation of the
uiValidate
directive with instead of:having this:
So basically in a validator function instead of returning
return false;
I can doreturn "errorFoo"
orreturn "errorBar"
depending on the error.Is such a feature welcome in this library, should I bother with a pull request or keep my changes local?
The text was updated successfully, but these errors were encountered: