Home:ALL Converter>How to reset validators in reactive form in angular 2?

How to reset validators in reactive form in angular 2?

Ask Time:2017-09-11T14:37:01         Author:Aswin KV

Json Formatter

I have using angular Reactive from. But when i reset the form after submitting it, the validators being in invalid and showing invalid form style. How to make the validators reset ? Can anybody help me to sort this out.

Author:Aswin KV,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/46149566/how-to-reset-validators-in-reactive-form-in-angular-2
Robert :

Hi can you try like this\n\nthis.form.reset()\n\n\nafter submitting can you use both methods\n\nthis.form.updateValueAndValidity()\n",
2017-09-11T06:42:31
yy