How do we clear an angular dropdown list value in angular ? clear the selection with an x button or clear button ? Thank You.
Code
<div fxFlex fxLayout="row" formGroupName="people">
<mat-form-field appearance="outline" class="pr-4" fxFlex>
<mat-label>People</mat-label>
<mat-select formControlName="people">
<mat-option *ngFor="let people of Peopls" [value]="peope.value">
{{ people.literal }}
</mat-option>
</mat-select>
</mat-form-field>
<button mat-button *ngIf="" matSuffix mat-icon-button
aria-label="Clear" (click)="";>
<mat-icon>close</mat-icon>
</div>
</div>