I am trying to implment pagination using angular-pagination but instead of ul and li I am using table and tr.
1 - can I do it?
2 - Is it the reason that pressing next is not working?
Here is the example(without jQuery).
I am trying to implment pagination using angular-pagination but instead of ul and li I am using table and tr.
1 - can I do it?
2 - Is it the reason that pressing next is not working?
Here is the example(without jQuery).
yes you can do it. try like this.
<table class="pagination-controle pagination">
<tr>
<td><button type="button" class="btn btn-primary" ng-disabled="curPage == 0"
ng-click="curPage=curPage-1"> < PREV</button></td>
<td>Page {{curPage + 1}} of {{ numberOfPages() }}</td>
<td><button type="button" class="btn btn-primary"
ng-disabled="curPage >= datalists.length/pageSize - 1"
ng-click="curPage = curPage+1">NEXT ></button></td>
</tr>
</table>