Scroll pagination for large data using angularjs
- Just a array slicer
- Fine tuning with attributes
Require ng-scroll-data
to your project and use this syntax in your templates:
<ng-scroll-data ng-scroll-step-down="8" ng-scroll-step-up="3" ng-scroll-limit="40" ng-scroll-items="data"/>
<table>
<tbody ng-repeat="model in data | ngScrollPaginator : ngScrollLimit : ngScrollBegin" >
<tr>
<td>
{{ model.id }}
</td>
</tr>
</tbody>
</table>