【发布时间】:2021-08-11 00:47:41
【问题描述】:
我在 FormGroup 中有一个 FormGroup 和一个 FormArray。
FormArray 以正确的方式返回值和控件。 但是当我尝试使用 FormArray.value 获取值时,它返回一个空数组。
console.log('child form here', this.services);
console.log('child form here', this.services['controls']);
在哪里
get services(): FormArray {
return this.parentgroup.get('services') as FormArray;
}
【问题讨论】:
标签: angular formarray formgroups