I have an array from 1 until 35:
numbersArray = [1,2,3,4,....,35]
I want to create a html table like the following:
---------------------------
1 |2 |3 |4 |5 |6 |7
---------------------------
8 |9 |10 |11 |12 |13 |14
---------------------------
15 |16 |17 |18 |19 |20 |21
---------------------------
22 |23 |24 |25 |26 |27 |28
---------------------------
29 |30 |31 |32 |33 |34 |35
---------------------------
I used the following:
<tr *ngFor="let number of numbersArray;">
<td>{{number}}</td>
</tr>
How can I add </td></tr><tr><td>
tags after 6 items in *ngFor
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…