<form class="mx-1" [formGroup]="form">
    <div *ngIf="!input">
        <mat-form-field class="input-style">
            <input
              matInput
              type="text"
              formControlName="search"
      (inputCleared)="searchCleared()"
            />
          </mat-form-field>
    </div>
    <div *ngIf="input">
      <label for="">{{ labelDefault }}</label>
    </div>
  </form>
  