No changes detected in diff
No code was added or removed in the provided diff; only context lines were present.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user