答案 0 :(得分:2)
只需添加:
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。