var A = [[[1],[2]],[[3],[4]],[[5],[6]]]
<li ng-repeat="a in A track by indexA" ng-click="myFnA(indexA)"> <li ng-repeat="b in B track by indexB" ng-click="myFnB(indexB)"><ul>
只需将<ng-repeat>放入一个<table>中,然后将一个<tr>放入其中:它不工作。但是如果你把<ng-repeat>放在<table>之外,例如。里面有一个<div>,它工作得很完美。-- ngRepeat: person in people --><ng-repeatng-repeat="person in people" class="ng-scope">
<&
当我使用不带任何过滤器的ng-repeat="thread in threads"时,它会按升序进行排序。当我使用ng-repeat="thread in threads | orderBy: '-':true"时,它会按descendant排序。这就是问题所在:当我使用ng-repeat="thread in threads | orderBy: '-':false"时,无论如何它都是按后代排序的。
谢谢你们所有人。