yougeen
yougeen

Reputation: 168

Form Validation for dynamic added fields in Angular 6

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.

enter image description here

I created a simplified version on Stackblitz

Upvotes: 1

Views: 4824

Answers (1)

Suresh Kumar Ariya
Suresh Kumar Ariya

Reputation: 9784

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

Upvotes: 5

Related Questions