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

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
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 | 64 views

1 Answer

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

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
40,796 users