This is the extended question of AngularJS Multiple ng-repeats on single row of table
I'm trying to display a grandChilds collection. A for loop would look something like this.
foreach(var parent in list)
foreach (var child in parent)
foreach (var grandChild in child)
print(grandChild.item1)
print(grandChild.item2)
print(grandChild.item3)
Below is the general idea of what each row would look like.
<table>
<tr ng-repeat="parent in list">
ng-repeat="child in parent"
ng-repeat="grandChild in child"
<td>grandChild.item1</td>
<td>grandChild.item2</td>
<td>grandChild.item3</td>
</tr>
</table>
In the above referred question, TBODY
is a good idea. But it will satisfy only two level (i.e., Parent and Child). How could I achieve my requirement (Parent, Child, Grandchild). Kindly assist me.
If I use nested TBODY
, then its failed in the W3C Validation.
Kindly assist me how to achieve this