I want to display my data in table rows, with 2 element per row.
For example, if I have this array:
['dinesh', 'kumar', 'mahesh', 'rathore']
The result should look like:
--------------------
| dinesh | kumar |
--------------------
| mahesj | rathore |
--------------------
When I put the ng-repeat
in the tr
, each row has one cell.
When I put the ng-repeat
in the td
, I am getting a single row with 4 cells
I tried using $index + 1
but it did not change the actual index value. So I am getting repeated elements. What's the solution?