autocomplete in angular code example
Example 1: how to add dropdown with filter in angular material
<mat-autocomplete #auto="matAutocomplete">
<mat-option *ngFor="let option of options" [value]="option">
{{option}}
</mat-option>
</mat-autocomplete>
Example 2: autocomplete list angular 8 material
<mat-autocomplete>
<mat-option *ngFor="let option of options" [value]="option">
{{ option }}
</mat-option>
</mat-autocomplete>
Example 3: autocomplete list angular 8 material
<mat-form-field>
<input type="text" matInput [formControl]="myControl">
</mat-form-field>