I have some simple angular 2 component with template. How to clear form and all fields after submit?. I can\'t reload page.
After set data with date.setValue(\'\')>
To reset the complete form upon submission, you can use reset() in Angular. The below example is implemented in Angular 8.
Below is a Subscribe form where we are taking email as an input.
Refer official doc: https://angular.io/guide/forms#show-and-hide-validation-error-messages.