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">
      <mat-label>Name</mat-label>
         <input matInput formControlName="nameFilter">
      </mat-form-field> 
  <button mat-raised-button class="search">Search</button>
</form>

<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