Answer the question
In order to leave comments, you need to log in
How to display pagination in Angular?
In the controller, I get the pagecount value (how many pages in total)
$pagecount = 4;
But how then to display the pages in the template in a cycle?
<li ng-repeat="i in $pagecount ng-click="click-page($i)">
<a href="#!"> {{ $index + 1 }} </a>
</li>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question