只需添加这一点:
selectedCustomer = '01';
而在模板中使用[(ngModel)]
:
<div class="main-div">
<h3>List</h3>
<mat-form-field>
<mat-select
placeholder="Select Customer"
[(ngModel)]="selectedCustomer">
<mat-option
*ngFor="let customer of customers"
[value]="customer.id"
(click)="selected($event, customer.id)">
{{customer.name}}
</mat-option>
</mat-select>
</mat-form-field>
</div>
以下是为您的参考一Working Sample StackBlitz。