如何使用Smart-Table提高ng-repeat性能?

car*_*ton 5 angularjs angularjs-ng-repeat ionic-framework smart-table

我有性能问题,我找不到解决方案.

上下文:我需要在表中显示大量数据(500行,8列).为了显示这些数据我选择使用Smart-table,因为它提供了很好的功能,但问题是我有很多数据,显示数据的时间很长(5-9秒,这取决于设备性能).

重要的是:我需要显示所有数据,所以我不想要分页方法,限制过滤器.

所以这段代码正在运行:

    <ion-scroll class="scrollVertical" direction="xy" overflow-scroll="true" >
            <table st-table="tableaux" class="table table-striped">
                    <thead>
                        <tr>
                            <th ng-repeat="column in ColumnTable">{{column.Label}}</th>
                        </tr>
                        <tr>
                            <th ng-repeat="column in ColumnTable">
                                <input st-search="{{column.Id}}" placeholder="" class="input-sm form-control" type="search" ng-model="inputRempli"/>
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-repeat="row in tableaux">
                            <td ng-repeat="column in ColumnTable" ng-init="colonne = column.Id">{{row[colonne]}}</td>
                        </tr>
                    </tbody>
                </table>
  </ion-scroll>
Run Code Online (Sandbox Code Playgroud)

我读到Ionic做了一个指令(收集 - 重复),它允许一个应用程序显示大量的项目列表比ng-repeat更高效.所以我尝试用collection-repeat重新制作我的解决方案,但这不起作用......

代码收集 - 重复解决方案:

<ion-scroll class="scrollVertical">
        <table st-table="tableaux" class="table table-striped">
            <thead>
                <tr>
                    <th ng-repeat="column in ColumnTable">{{column.Label}}</th>
                </tr>
                <tr>
                    <th ng-repeat="column in ColumnTable">
                        <input st-search="{{column.Id}}" placeholder="" class="input-sm form-control" type="search" ng-model="inputRempli"/>
                    </th>
                </tr>
            </thead>
            <tbody>
                <tr collection-repeat="row in tableaux"  item-width="200px" item-height="100px">
                    <td collection-repeat="column in ColumnTable" ng-init="colonne = column.Id" item-width="100px" item-height="100px">{{row[colonne]}}</td>
                </tr>
            </tbody>
        </table>
    </ion-scroll>
Run Code Online (Sandbox Code Playgroud)

错误:超出了最大调用堆栈大小

问题:是否有任何angularjs或离子解决方案可以提高智能表的性能和大量数据?我的收藏重复有什么问题?