我是Angular的新手,正在尝试构建一个表单来收集用户信息。 假设我有一个用户,他可以有一个“朋友”与他们关联。我的FormGroup的简化版本如下所示: userInformation = new FormGroup({ age: new FormControl('', [Validators.required]), na
: Company}form: FormGroup = new FormGroup({ code: new FormControl(this.formData.code, [Validators.required]),
name: new FormControl(this.formData.name单击它将显示编辑表单,设置一个输入属性,该属性通
textRelease()"[{ngModel}]="this.getCaptionDetail.value.caption">{{this.getDetailText.caption}} var theControl = theGroup.at(this.detailIndex) as FormControl我希望能够通过获取对特定控件的引用来从文本区域获取最后输入</