Answer the question
In order to leave comments, you need to log in
How to handle 401 error?
We need to handle this error in order to add an inscription under the form, indicating that incorrect data has been entered.
<mat-error *ngIf="passForm.hasError('required')">Необходимо указать пароль</mat-error>
<mat-error *ngIf="passForm.hasError('minlength')">Пароль должен быть более шести символов</mat-error>
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