M
M
Maxim Ivanov2016-09-06 16:25:04
Angular
Maxim Ivanov, 2016-09-06 16:25:04

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>

doesn't work because it's not a pagecount object

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Ivanov, 2016-09-06
@splincodewd

stackoverflow.com/questions/11873570/angularjs-for...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question