I have a section of code containing a table in my component:
expect-next-month.component.html
<table id="users">
<tr>
<th>Number of month</th>
<th>Total checking electrical units</th>
<th>Total assembly</th>
<th>Total soldering</th>
<th>Total packing</th>
<th>Total working days in this month</th>
</tr>
<tr *ngFor="let sum of totalWorkPerMonth">
<td>{{sum.number_of_month}}</td>
<td>{{sum.total_checking_electrical_units}}</td>
<td>{{sum.total_assembly}}</td>
<td>{{sum.total_soldering}}</td>
<td>{{sum.total_packing}}</td>
<td>{{sum.total_working_days_in_this_month}}</td>
</tr>
</table>
The task at hand is to extract data from the total_packing column and store it in an array within the ts file for validation purposes. (This particular column consists of integer values).
I'm seeking guidance on accomplishing this. I attempted using ngModel, however without success. Any assistance would be greatly appreciated. Thank you!