https://angular.io/api/forms/FormGroupName这里如何获取 FormGroupName。
如果 FormGroupName 是动态的,如何获取/修补/更新值?
<div class="row" *ngFor="let itemrow of searchForm.controls.addresses.controls; let ind=index" [formGroupName]="ind">
<input class="form-control" formControlName="name">
<input class="form-control" formControlName="time">
</div>
searchForm.value 对象:
"addresses": [
{
"address": "",
"name": 0,
"time": 0,
},
{
"address": "",
"name": 0,
"time": 0,
}
]
如何更新 currentGFormGroupName 内的输入值?