我有一个下拉列表,如下所示
html
<mat-form-field>
<mat-select placeholder="Team" [(ngModel)]="selectedTeam" name="team"
(change)="mainValuesChanged('team',$event,t.value)" #t>
<mat-option *ngFor="let team of teams" [value]="t
我在表单#1中得到:输入和选择。在表单#2中,相同的字段和复选框。当我单击复选框时,如何将表单#1的值传递给表单#2? HTML代码: <mat-form-field>
<input matInput placeholder="Nombre" formControlName="names" required>
<mat-error *ngIf= "f?.names?.errors?.required">
Name field empty or not valid, please check