javascript - Form Validation for dynamic added fields in Angular 6 - Stack Overflow

I've created a reactive form with multiple input fields. The validation works fine for one field b

I've created a reactive form with multiple input fields. The validation works fine for one field but I stuck for the validation on my dynamic added input fields.

What I want to achieve is that for every row the both input fields should be required too. The problem must be the access of the formarray.

I created a simplified version on Stackblitz

I've created a reactive form with multiple input fields. The validation works fine for one field but I stuck for the validation on my dynamic added input fields.

What I want to achieve is that for every row the both input fields should be required too. The problem must be the access of the formarray.

I created a simplified version on Stackblitz

Share Improve this question asked Nov 27, 2018 at 12:56 yougeenyougeen 1681 silver badge14 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

Accessing the form array input control is not correct way. I updated the stackblitz. Refer this https://stackblitz./edit/angular-3cym5a

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745603703a4635550.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信