Javascript 角度文本不显示
我正在编写一个代码,用户可以在字段中选择“是”或“否”。它没有给出任何错误,但在屏幕上我看不到“是”或“否”选项。我的代码中可能有什么问题 HTML:Javascript 角度文本不显示,javascript,html,angular,typescript,Javascript,Html,Angular,Typescript,我正在编写一个代码,用户可以在字段中选择“是”或“否”。它没有给出任何错误,但在屏幕上我看不到“是”或“否”选项。我的代码中可能有什么问题 HTML: 在模板中,{{prm.name}应该是{{prm.name}(大写N) <div fxLayout="row" fxLayoutAlign="start center"> <mat-form-field appearance="outline"
在模板中,
{{prm.name}
应该是{{prm.name}
(大写N)
<div fxLayout="row" fxLayoutAlign="start center">
<mat-form-field appearance="outline" fxFlex class="pr-4">
<mat-label>Numune Toplanacak</mat-label>
<mat-select formControlName="CollectMaterialSample" [compareWith]="compareBasic">
<mat-option *ngFor="let prm of yesNo" [value]="prm.Id">
{{prm.name}}
</mat-option>
</mat-select>
</mat-form-field>
</div>
yesNo: IBasicModel[] = [
{ Id: 1, Name: "Evet" },
{ Id: 0, Name: "Hayır" },
];
CollectMaterialSample: new FormControl(this.product.CollectMaterialSample, Validators.required),