Awesome q2a theme

How to reset form fields Angular Material to remove a validation error?

0 like 0 dislike
90 views
There is a form field
Please enter at least 4 symbolsPassword is required

After sending the data, I reset the value of this.password=";
And I can not remove the message "Password is required"
No manipulation of passwordFormControl not help.
How correctly to do this?
by | 90 views

1 Answer

0 like 0 dislike
As always he found the solution.
Need to do passwordFormControl.setErrors(null)
by

Related questions

0 like 0 dislike
1 answer
asked May 21, 2019 by sabirovvlad0
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users