<tr *ngFor="let item of capturaDiaria.inventarioList; let i = index">
<td> <input type="number" class="form-control" [(ngModel)]="item.kg_blanca" name="blanca-{{i}}"> </td>
</tr>
Initially, if the user hasn't entered any data yet and the list is null, I want to display 0 in the input field.