1

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).

1 Answer 1

1

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"> &lt; 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 &gt;</button></td> </tr> </table> 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.