In the Reactive Forms guide, a user is encouraged to use native HTML5 attributes for validation such as required, minlength or maxlength. However, the default behavior of Angular reactive form is that it adds novalidate attribute to the form, which prevents native validators from functioning.
To prevent misunderstanding, I would suggest adding information, that in order for HTML5 validators to work properly, one needs to add ngNativeValidate directive to the form.
In the Reactive Forms guide, a user is encouraged to use native HTML5 attributes for validation such as
required,minlengthormaxlength. However, the default behavior of Angular reactive form is that it addsnovalidateattribute to the form, which prevents native validators from functioning.To prevent misunderstanding, I would suggest adding information, that in order for HTML5 validators to work properly, one needs to add
ngNativeValidatedirective to the form.