I'm using AngularJS with FooTable to show data in a table.
I have an issue when updating FooTable content.
This is when more than 10 Records
This is when updating with no records. FooTable shows pagination
When I click pagination (2), old records are showing
This is when updating with less than 10 records. The pagination is gone now.
My FooTable is,
<table class="table" data-paging="true" data-filtering="true" data-sorting="true" data-state="true">
<thead>
<tr>
<th data-breakpoints="xs">Session ID</th>
<th data-breakpoints="xs">Date</th>
<th data-breakpoints="xs">Cost</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="(index,session) in sessions" class="panel" repeat-end="onEnd()" data-expanded="true">
<td>
<span ng-if="session.sid">{{session.sid}}</span>
</td>
<td>
<span ng-if="session.sid">{{session.date}}</span>
</td>
<td>
<span ng-if="session.cost_to_interviewer">{{session.cost_to_interviewer}}</span>
</td>
</tr>
</tbody>
</table>
First time I initialized FooTable as
FooTable.init('.table', {});
The response(in object form) stores $scope.sessions
. Then AngularJS will display this content.
I tried to debug but failed. Can anyone help me?