gpt4 book ai didi

angularjs - 为什么在使用 collection-repeat 而不是 ng-repeat 时不显示列表

转载 作者:行者123 更新时间:2023-12-04 03:31:51 25 4
gpt4 key购买 nike

我在我的演示中使用了 ng -repeat。但是由于来自服务的大量数据。我想使用 collection-repeat 来提高性能。我将如何使用 collection-repeat 来获得相同的输出。这是我的笨蛋

<ion-scroll scrollbar-y="true" delegate-handle="i" ng-style="viewHeight">
<div class="row" ng-repeat="column in i | limitTo: counter track by $index" ng-class-odd="'odd-row'">
<div class="col brd collapse-sm" ng-repeat="field in column.columns" ng-show="i[$index].checked && i[$index].f===field.fieldNameOrPath">{{field.value}}</div>
<div class="col col-10 text-center brd collapse-sm"></div>
</div>
</ion-scroll>
<ion-infinite-scroll immediate-check="false" on-infinite="loadMore(query)" distance="10%"></ion-infinite-scroll>

我在这里尝试像那样使用集合重复

但没有得到相同的结果

我们可以使用细 GridView 吗?

最佳答案

希望您现在能够找到答案,但以防万一,希望这会有所帮助...

集合重复不支持“limitTo: counter track by $index

如果您仍有问题,请告诉我。

关于angularjs - 为什么在使用 collection-repeat 而不是 ng-repeat 时不显示列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30776568/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com