Implement a search filter for the component of angular material
HTML <h4>mat-select</h4> <mat-form-field> <mat-label>State</mat-label> <mat-select> <input (keyup)=”onKey($event.target.value)”> // **Send user input to TS** <mat-option>None</mat-option> <mat-option *ngFor=”let state of selectedStates” [value]=”state”>{{state}}</mat-option> </mat-select> </mat-form-field> TS states: string[] = [ ‘Alabama’, ‘Alaska’, ‘Arizona’, ‘Arkansas’, ‘California’, ‘Colorado’, ‘Connecticut’, ‘Delaware’, ‘Florida’, ‘Georgia’, ‘Hawaii’, ‘Idaho’, ‘Illinois’, ‘Indiana’, ‘Iowa’, ‘Kansas’, ‘Kentucky’, ‘Louisiana’, ‘Maine’, ‘Maryland’, ‘Massachusetts’, ‘Michigan’, ‘Minnesota’, ‘Mississippi’, ‘Missouri’, ‘Montana’, ‘Nebraska’, ‘Nevada’, … Read more