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
Can you make min and max error to include required min or max value like the build in min/max length validators. We develop custom error message component which is bind to form component & listen the component errors.
minlength: {actualLength : 1, requiredLength : 5}
The text was updated successfully, but these errors were encountered:
While it looks like some work has been done to make this possible, the data structure of ng2-validators output doesn't seem to match that of the built-in validators. For example:
Built-In Validators:
{
myErrorName: {
actualValue: [the actual input value].
requiredValue: [the required value given to the validator]
}
}
ng2-validators
{
myErrorName: true,
actualValue: [the actual input value],
requiredValue: [the required value given to the validator]
}
As it is, the ng2-validators version doesn't appear to be able to support requiredValues for multiple errors.
Does anyone know if this was intentional? Am I missing something?
Can you make min and max error to include required min or max value like the build in min/max length validators. We develop custom error message component which is bind to form component & listen the component errors.
minlength: {actualLength : 1, requiredLength : 5}
The text was updated successfully, but these errors were encountered: