My controller grabs people from the server:
$scope.people = [person1, person2, person3, person4, person5,...]
My template needs to display three people per line. For example if it was a table:
<table>
<tr>
<td>person1</td><td>person2</td><td>person3</td>
</tr>
<tr>
<td>person4</td><td>person5</td><td>person6</td>
</tr>
</table>
I wasn't sure how to conditionally apply the <tr>
when $index % 3 == 0
or what the best practices are. I know how to do this by adding grouping logic to the controller but I thought it would be best to keep design logic out of the controller.