I have this array with objects which has time-value attributes, and I would like to display 2 pairs per row. Like following:
<table>
<tr>
<td>pair1</td> <td>pair4</td>
</tr>
<tr>
<td>pair2</td> <td>pair5</td>
</tr>
<tr>
<td>pair3</td> <td>pair6</td>
</tr>
</table>
What I have:
<tbody ng-if="reportCtrl.mainArr">
<tr ng-repeat="item in reportCtrl.mainArr | limitTo:reportCtrl.rowLimit">
<td>
{{item.value.toFixed(2)}}
</td>
<td>
<span>{{item.time | amDateFormat:'MM.DD.YYYY HH:mm:ss'}}</span>
</td>
</tr>
I am pretty sure there is a way to do it with angular ng-repeat but I couldn't figure it out yet.