<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<script src="https://code.jquery.com/jquery-2.1.0.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.6/jquery.mousewheel.min.js"></script>
<h1>Paginated Scrolling</h1>
<p>You can scroll the table body using mouse.</p>
<p>There is a strange behavior: the very first rendering will show the table with incorrect number of lines (9 instead of 10). After filtering the table and removing the filter, the table will show the correct number of itens: 10.</p>
<div ng-app="myApp" ng-controller="MainCtrl">
Filter: <input ng-model="numberFilter"></input>
<br/>
<table>
<thead>
<td>Numbers</td>
</thead>
<tbody scroll>
<tr ng-repeat="d in filtered = (data | filter:numberFilter) |
startFrom:currentPage*pageSize |
limitTo:pageSize">
<td>{{d}}</td>
</tr>
</tbody>
</table>
<br/>
Page {{currentPage+1}} of {{numberOfPages()}}
<br/>
Page Size: <input ng-model="pageSize" style="width: 4em"></input>
<br/>
Data Size: {{data.length}}
<br/>
Filtered Size: {{filtered.length}}
</div>