Add server-side pagination to any list or table on the page. This directive connects a variable of your choice on the local scope with data provied on a given URL. It provides a pagination user interface that triggers updates to the variable through paginated AJAX requests.
Pagination is a distinct concern and should be handled separately from other app logic. Do it right, do it in one place. Paginate anything!