<mat-form-field class="input-field">
  <mat-label>{{eltType}}</mat-label>
  <input type="text"
         matInput
         [matAutocomplete]="auto"
         [formControl]="autocompleteControl">
  <mat-autocomplete #auto="matAutocomplete" [displayWith]="displayFn" (optionSelected)='onSelection.emit($event.option.value)'>
    <mat-option *ngFor="let elt of filteredData | async" [value]="elt" >
      {{displayFn(elt)}}
    </mat-option>
  </mat-autocomplete>
</mat-form-field>
