2

I want to use angular-botstrap-ui in my application. But I don't know how I can build pagination.

Let's say I have 100 records in table and I want to fetch 10 results in table row. By using ng-repeat I am getting 100 rows but I want to limit them using pagination. How I can achieve that?

1 Answer 1

5

I have solved this in using the array function slice

ng-repeat="row in queryResult.rows.slice(((currentPage-1)*10), ((currentPage)*10))"

I have written a blog post about my ingenious solution here

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

Comments

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.