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 -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -