Clear Filter Angular 6

I have a table with a filter like this:

<form  [formGroup]="form"  (ngSubmit)="onSubmit()">
   <mat-form-field class="filter" floatLabel="never">
         <input matInput formControlName="nameFilter">
  <button mat-raised-button class="search">Search</button>

<button mat-raised-button class="reset" (click)="resetFilter()">Reset</button>

What should I insert in my TS to be able to cancel the filter?
Do I need to insert the button “filter” inside the form?

Source: New feed
Source Url Clear Filter Angular 6