Skip to content Skip to sidebar Skip to footer

Angular 5 Not Showing User Entered Values From Formarray

In angular 5 I am trying to add new row and remove row functionality. For add new row and delete row I have taken code from here. Everything is working fine but when I am trying to

Solution 1:

You need to add this in line 23 and 24

<div class="row" formArrayName="sections">
  <div class="col-md-12" *ngFor="let section of getSections(form); let i = index" [formGroupName]="i">

you missed adding the formGroupName for the formArrayName

workinglink

Post a Comment for "Angular 5 Not Showing User Entered Values From Formarray"