简体   繁体   English

带有自定义控件的Angular 5反应形式作为Stackblitz上的FormArray示例

[英]Angular 5 reactive form with custom controls as FormArray example on stackblitz

I have created a sample project on stackblitz to test nesting components en get the complete form value back. 我在stackblitz上创建了一个示例项目,以测试嵌套组件,以获取完整的表单值。

https://stackblitz.com/edit/mensand-hobbies-footbal-tennis https://stackblitz.com/edit/mensand-hobbies-footbal-tennis

Its's a sample where i wan't to use different components stored in a array. 这是一个示例,我不想使用存储在数组中的不同组件。

The form is created correctly but the sub controls aren't bind to the form.value 正确创建了表单,但子控件未绑定到form.value

Do someone know what i'm missing? 有人知道我在想什么吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM