How to set filter with mat auto select in angular template driven form.
<mat-form-field class="pl">
<input matInput name="item_id"
[(ngModel)]="stock.item_id"
#item_id="ngModel"
placeholder="Item"
[matAutocomplete]="auto" required>
<mat-autocomplete #auto="matAutocomplete" [displayWith]="valueMapper">
<mat-option *ngFor="let item of itemsData" [value]="item.id">
{{item.text}}
</mat-option>
</mat-autocomplete>
</mat-form-field>
Please see stackblitz example: click here