How to reset validators in reactive form in angular 2? -


i have using angular reactive from. when reset form after submitting it, validators being in invalid , showing invalid form style. how make validators reset ? can me sort out.

hi can try this

this.form.reset() 

after submitting can use both methods

this.form.updatevalueandvalidity() 

Comments

Popular posts from this blog

Sort a complex associative array in PHP -

c++ - Fill edges and center of array/vector with different values -

ios - Chat Bubble in Swift3 -