AngularJS nested ul list and ng-repeat
问题 At first I have to say I'm new to AngularJS but I have to modify a web app, that is to nest list inside another: <ul class="first-level"> <li ng-repeat="item in list">{{item.parentNo1}} <ul class="level-2"> <li ng-repat="item in list">{{item.childOfCurrentParent}}</li> . . . </ul> </li> <li ng-repeat="item in list">{{item.parentNo2}} <ul class="level-2"> <li ng-repat="item in list">{{item.childOfCurrentParent}}</li> . . . </ul> </li> </ul> I received an array of objects (JSON) like this: [{