【发布时间】:2015-06-27 01:19:39
【问题描述】:
我试图通过其父重复的索引来限制子重复。因此,无论它在其上的任何级别索引都将限制为(+ 1,因此我们不从 0 开始)。这是我的想法 -
<div class="inputRepeater" ng-repeat="face in inputFaces" ng-show="face.isCurrent" >
<div class="trialGrid">
<table class="table table-striped">
<thead>
<tr>
<th ng-repeat="(key, val) in rowCollection[0]">{{key}}</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="row in rowCollection | limitTo: face.$index + 1">
<td ng-repeat="item in row">{{item}}</td>
</tr>
</tbody>
</table>
</div>
</div>
因此,表中的 tr 将仅限于 face, buy faces $index + 1 的初始重复。这是行不通的。任何见解将不胜感激。谢谢!
【问题讨论】:
-
控制台出现什么错误?
标签: javascript angularjs angularjs-ng-repeat ng-repeat