I am using NG-table to display filtered data but I encountered problem with the pagination.
This is the construction:
HTML:
<li ng-repeat="(type, value) in winetypes">
<input type="checkbox" ng-model="winetypes[type]"/> {{type}}
</li>
<ul>
<li ng-repeat="wine in data | winetypefilter:winetypes">
{{wine.name}} is a {{wine.type}} with {{wine.style}} style from {{wine.country}}
</li>
</ul>
<p><strong>Page:</strong> {{tableParams.page()}}</p>
<p><strong>Count per page:</strong> {{tableParams.count()}}</p>
<table ng-table="tableParams" class="table">
<tr ng-repeat="user in filtered = ($data | winetypefilter:winetypes)">
<td data-title="'Name'">{{user.name}}</td>
</tr>
</table>
The filtering, and the pagination are working fine, but if the red checkbox is checked (red wines), all the filtered red wines appears inside a classic list (not linked to ng-table).
Normally inside the table created by ng-table, in each page it should appears 10 items, but it´'s not the case (see the image below)
Here the demo: http://plnkr.co/edit/9xTdaQ2bTfY0jQpZAL1T?p=preview
What is the way to solve this problem??