Is it possible to create a new row in a table every time the 5th <td>
element is reached?
For example, if we have the following data set: [1,2,3,4,5,6];
We can use the following component:
<tr v-for="(item,index) in data">
<td v-if="(index + 1) % 5 !== 0">{{item}}</td>
</tr>
The expected outcome would be:
| 1 | 2 | 3 | 4 | 5 |
| 6 |