In my angular app, I have 3 inputs say - code, name and price with Add more button at end of the table, when clicking on Add More button there should be a duplication of the row. All this is working fine, but I need to fetch the value of this dynamic box value.
Below is the code table:
<form class="form-horizontal" (ngSubmit)="Data(addForm)" [formGroup]="addForm">
<tr *ngFor="let field of fieldArray; let i = index">
<td><input type="text"formControlName="codeTxt"></td>
<td><input type="text"formControlName="nameTxt"></td>
<td><input type="text"formControlName="priceTxt"></td>
<td><button (click)="deleteFieldValue(i)">Delete</button></td>
<tr>
<tr>
<td><input type="text"formControlName="codeTxt"></td>
<td><input type="text"formControlName="nameTxt"></td>
<td><input type="text"formControlName="priceTxt"></td>
<td><button (click)="addFieldValue()">Add</button></td>
<tr>
</form>
I need to get the value of all the dynamically added row in angular with a total price