我在HTML元素与大致结构的<ul>
如下列表:动态隐藏取决于值列表中Angularjs
<ul id="ElementList">
<li> Some element 1 </li>
<li> Some element 2 </li>
<li> Some element 3 </li>
<li ng-repeat="element in someArray" ng-show = "SomeCondition"> element </li>
</ul>
我想完全隐藏元素列表,如果没有元素3之后的元素,并显示完整列表,如果在元素3之后出现任何元素。用于ng-repeat的数组和上面的ng-show的条件是我不能使用或者理解它如何工作的东西(来来自第三方),因此可以只与渲染的东西玩耍。我怎样才能做到这一点?
使用问题解答解决http://stackoverflow.com/questions/19664691/angular-js-how-to-count-ng-repeat-iterations-which-satisfy-the-custom-filter – labyrinth