0

我有一个多选项选择,我想添加一个名为“以上都不是”的选项,以防止您选择更多选项。我怎样才能做到这一点?

我的选择

<mat-form-field>
  <mat-select #matSelector [formControl]="servicesControl" [multiple]="true">
    <mat-option *ngFor="let service of services" [value]="service">
      <span>{{ service }}</span>
    </mat-option>
    <mat-option value="None of the above">
      <span>None of the above</span>
    </mat-option>
  </mat-select>
</mat-form-field>
4

0 回答 0