问题描述:

I want to do the exact same thing as this Fiddle (The example is mine) but using angular. In the normal HTML I have a parent tr with its own child tr so when I run the example I can see

that the child records that are related to its parent tr

Then I start doing this in Angular but now Im confused because I'm using ng-repeat and a JSON structure to populate the data so now I only have this piece of code, I put this as the parent but I don't know how to deal with the "child":

 <tbody>

<tr ng-repeat="d in category" class="parent">

<td class="expand"></td>

<td ng-bind="d.cat"></td>

<td ng-bind="d.LW$"></td>

<td ng-bind="d.LW"></td>

<td ng-bind="d.L4W"></td>

<td ng-bind="d.L13W"></td>

<td ng-bind="d.L52W"></td>

</tr>

</tbody>

Here is my code with the angular version: https://jsfiddle.net/228wkfej/

相关阅读:
Top