我传入一个对象作为我的值,并且需要使用ngValue而不是值。,这里提供了我的错误:https://stackblitz.com/edit/angular-5wk4rl?If 'mat-option' is an Angular component and it has 'ngValue' input, then verify that
it is part of正如在堆栈上的其他答
我有两个选择;第一个是你在不同大洲之间选择的。第二个mat-select选项包含国家/地区选项。我的问题是,例如,如果我在第一个mat-select中选择亚洲作为我的选项,我只希望亚洲国家在第二个mat-select中显示为选项,而不是其他国家。*ngFor="let continent of formData" [value]="continent.Cont