我有一个表单设置和一个循环来创建一个名为" rating"
的子组件表<form [formGroup]="ratingGroup">
.
.
.
<ng-container *ngIf="ratings.length>0">
<tr *ngFor="let name of measureNames">
<td class="col-sm-1">{{name}}</td>
<ng-container *ngFor="let rating of ratings | groupFilter: name ">
<ng-container *ngFor="let key of rating | keys">
<td class="col-sm-1" *ngIf="key=='measureRating'"><rating formControlName="singleRating" [selectedRating]="rating[key]"></rating></td>
</ng-container>
</ng-container>
</tr>
</ng-container>
当我按下更新按钮时,我想循环浏览所有&#34;评级&#34;控制着他们的价值观。我猜测方式是通过formgroup和formarray / formcontrol混合,但我不知道如何设置它。