Cleanest way to reset forms
Add a reference to the ngForm directive in your html code and this gives you access to the form, so you can use .resetForm(). …Or pass the form to a function: The difference between resetForm and reset is that the former will clear the form fields as well as any validation, while the later will only clear the fields. Use resetForm after the form … Read more