16 lines
664 B
HTML
16 lines
664 B
HTML
<form class="example-form">
|
|
<mat-form-field class="example-full-width">
|
|
<mat-label>Email</mat-label>
|
|
<input type="text" aria-label="Email" matInput [formControl]="control" [matAutocomplete]="auto">
|
|
@if (text) {
|
|
<button matSuffix mat-icon-button aria-label="Clear" (click)="text=''">
|
|
<mat-icon>close</mat-icon>
|
|
</button>
|
|
}
|
|
<mat-autocomplete autoActiveFirstOption #auto="matAutocomplete">
|
|
@for (option of filteredOptions | async; track option) {
|
|
<mat-option [value]="option">{{option}}</mat-option>
|
|
}
|
|
</mat-autocomplete>
|
|
</mat-form-field>
|
|
</form> |