In an Angular reactive form. How to reset only the state of form after successful submit?
Here is the process:
Adding a another answers, if you have a disabled input in your form, use getRawValue() as a parameter of ngForm.resetForm(). See the sample:
in HTML:
...
in .TS:
formSubmit(myForm: NgForm) { myForm.resetForm(myForm.form.getRawValue()); }