NGX Custom Form Error Test

View HTML Source

[ 0 / 20 ]
Here we show error but don't stop user from adding more than 20 characters.
[ 0 / 20 ]
Here we stop user from adding more than 20 characters. It has nothning to with c-form-error but we are adding maxLength attribute in input element ( standard html input attribute).
Here we are not using `cLabel` but are providing label as input to the c-form-error.
Currently we don't have a way to support custom error message with keys like passwordDoNotMatch for type safety. You can help me if you have any idea how should I deal with it, making it type safe in template as well. So this is a workaround.

Please check the ts file as well how how I have implemented password not same custom error.