Angular material 从“动态材质选择”中禁用选定选项
我想禁用动态加载选项数组中的选定选项 HTMLAngular material 从“动态材质选择”中禁用选定选项,angular-material,Angular Material,我想禁用动态加载选项数组中的选定选项 HTML <div> <mat-select placeholder="Select a file type" formControlName="title"
<div>
<mat-select
placeholder="Select a file type"
formControlName="title"
#title
(selectionChange)="onChangeTitle($event.value)"
>
<mat-option
*ngFor="
let title of myTitles | keyvalue
"
[value]="title.value"
[disabled]=""
>
{{ title.key }}
</mat-option>
</mat-select>
</div>
myArr = [
'X',
'X2',
'X3',
];