blob: 3bcdb51f36c1bfc576e905f4ac161ddb11ec0c9f [file] [log] [blame]
Matteo Scandolo8b2370c2017-02-02 17:19:07 -08001<div class="row" ng-if="vm.pageList.length > 1">
2 <div class="col-xs-12 text-center">
3 <ul class="pagination">
4 <li ng-click="vm.goToPage(vm.currentPage - 1)"
5 ng-class="{disabled: vm.currentPage == 0}">
6 <a href="" aria-label="Previous">
7 <span aria-hidden="true">&laquo;</span>
8 </a>
9 </li>
10 <li ng-repeat="i in vm.pageList" ng-class="{active: i === vm.currentPage}">
11 <a href="" ng-click="vm.goToPage(i)">{{i + 1}}</a>
12 </li>
13 <li ng-click="vm.goToPage(vm.currentPage + 1)"
14 ng-class="{disabled: vm.currentPage == vm.pages - 1}">
15 <a href="" aria-label="Next">
16 <span aria-hidden="true">&raquo;</span>
17 </a>
18 </li>
19 </ul>
20 </div>
21</div>