1
https://angular.io/api/forms/FormGroupNameここでFormGroupNameを取得します。角2動的フォームグループ名を取得
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オブジェクト:currentGFormGroupName内の入力値を更新する方法
"addresses": [
{
"address": "",
"name": 0,
"time": 0,
},
{
"address": "",
"name": 0,
"time": 0,
}
]
?
あなたのJSONを入力してください。 – Swanand