angular - cycle through array with ngFor and create a new row every x elements -
i want display array via *ngfor , start new row every x elements.
how can achieve ? i'm trying this.
<tr> <td *ngfor="let elements of myarray ; let index = index"> // if !(index % x) create new row </td> </tr>
Comments
Post a Comment