Matteo Scandolo | 8b2370c | 2017-02-02 17:19:07 -0800 | [diff] [blame] | 1 | <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">«</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">»</span> |
| 17 | </a> |
| 18 | </li> |
| 19 | </ul> |
| 20 | </div> |
| 21 | </div> |