Answer the question
In order to leave comments, you need to log in
Is it possible to display automatic error messages in a form?
When building a form, I use FormBuilder and Validators . If an error occurs, then you have to output a message like this
<div class="alert alert-danger" *ngIf="userForm.controls['email'].hasError('required') && userForm.controls['email'].touched">Not valid.</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question