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

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -