Am trying to increment the index value to create a list with numbers 1,2,3,4
<tbody>
<tr *ngFor="let item of queue.truckQueus; let i = index" [attr.data-index]="i">
<td>{{i ++ }}</td> //this throws an error
<td>{{item.truck.reg_no}}</td>
</tr>
</tbody>
How do i add the numbers from 1
I have also tried adding via
{{i += 1}}
But am always getting an error expression is expected. Where am i going wrong?
{{ i + 1 }}?