Sharing below how you can implement AJAX pagination using angularJS.Â As I am in the learning phase of angular i get fascinate after implementing something new which i don't know. So I thought for noting it down, which will help someone out there.
Steps 1: Create a HTML file as "test.html" and copy the below code.
Little explanation about the functions declare in controller:
$scope.showData : initializing data to be populate when page gets loaded.
$scope.paginationLimit : Setting up pagination limits for each page request.
$scope.hasMoreItemsToShow : This will set wheater we reach the end of the record or not.
$scope.showMoreItems : This function will trigger with user click on "Show More" button. It will do a ajax call to server and get the next sets for records and push it to current $scope.