【发布时间】:2021-10-16 15:06:59
【问题描述】:
我想引用下图中黄色的控件,谁能帮助我如何获取该引用,以便我可以推送实时数据。
【问题讨论】:
-
到目前为止你尝试了什么?
-
我能够使用下面的代码(
this.contracttemplateform.get('contractproperties')).controls 获得引用直到上面的formarray,但我无法获得对下一个控件的引用 -
const test = (
( ( this.contracttemplateform.get('contractproperties')).controls[0]).controls['templateTCText']); -
当我们打印控件[0]时出现错误,例如 can't read property controls of null
标签: angular nested-forms reactive formarray