blob: 3bcdb51f36c1bfc576e905f4ac161ddb11ec0c9f [file] [log] [blame]
<div class="row" ng-if="vm.pageList.length > 1">
<div class="col-xs-12 text-center">
<ul class="pagination">
<li ng-click="vm.goToPage(vm.currentPage - 1)"
ng-class="{disabled: vm.currentPage == 0}">
<a href="" aria-label="Previous">
<span aria-hidden="true">&laquo;</span>
</a>
</li>
<li ng-repeat="i in vm.pageList" ng-class="{active: i === vm.currentPage}">
<a href="" ng-click="vm.goToPage(i)">{{i + 1}}</a>
</li>
<li ng-click="vm.goToPage(vm.currentPage + 1)"
ng-class="{disabled: vm.currentPage == vm.pages - 1}">
<a href="" aria-label="Next">
<span aria-hidden="true">&raquo;</span>
</a>
</li>
</ul>
</div>
</div>