1

I am using dirPagination to paginate data in a table. The very first time I don't see any data. I don't see any errors either.

See my code in action: plunker

[Plunker][1]http://plnkr.co/edit/3rZoKhnIEnqjUOJNT0iI?p=preview

1 Answer 1

1

You need to set $scope.currentPage = 1;

Fixed plunker

Sign up to request clarification or add additional context in comments.

2 Comments

Great. thank u. wondering why doesn't the pagination bar doesn't appear even after I change itemsPerPage: 2
You were missing the template for the pagination directive: dirPagination.tpl.html. I updated the plunker.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.