DanWahlin/CustomerManager

pagination cannot be changed to page size other than 10

kktam opened this issue · 1 comments

Hi Dan

Your demo application is impressive. I am currently study it to understand how to use Angular.js with MVC.

I have a question regarding the data-pagination used in the demo. I tried to change the page size in data-ng-repeat used in the customers.html, and found that data-pagination still shows the same number of pages, assuming the page size is 10. Is that any way to change the page size (thus increase or decrease the total number of pages)?

Thank you
Nelson

Thanks for checking it out! Pagination defaults to 10 per page with the UI Boostrap pager. However that can be changed using the items-per-page="pageSize" property. I've updated the sample to include this property so that the page size can be changed by modifying the pageSize property in customersController.js now.