I am implementing server side pagination in AngularJS following the code at laravel-tricks
I pass pageNumber to the API and it returns the total number of results and other data on that page in the results. The data is then displayed in the table.
How can I generate a list of hrefs for pages dynamically when the results are received ?
Note 1: I have tried ngTable, but it doesn't update the table when the data is changed though it does update the model. Hence resorted to manual pagination since I need a basic pagination only
Note 2: I am not using Bootstrap there for pagination provided by AngularUI is not of any use.
loadPagetake the page number, then add<a ng-repeat='page in pages' ng-click='loadPage(page)'>{{page}}</a>. Is there a reason you specifically need to generatehref?