1<ul class="pagination" ng-if="1 < pages.length || !autoHide"> 2 <li ng-if="boundaryLinks" ng-class="{ disabled : pagination.current == 1 }"> 3 <a href="" ng-click="setCurrent(1)">First</a> 4 </li> 5 <li ng-if="directionLinks" ng-class="{ disabled : pagination.current == 1 }"> 6 <a href="" ng-click="setCurrent(pagination.current - 1)">Previous</a> 7 </li> 8 <li ng-repeat="pageNumber in pages track by tracker(pageNumber, $index)" ng-class="{ active : pagination.current == pageNumber, disabled : pageNumber == '...' }"> 9 <a href="" ng-click="setCurrent(pageNumber)">{{ pageNumber }}</a> 10 </li> 11 12 <li ng-if="directionLinks" ng-class="{ disabled : pagination.current == pagination.last }"> 13 <a href="" ng-click="setCurrent(pagination.current + 1)">Next</a> 14 </li> 15 <li ng-if="boundaryLinks" ng-class="{ disabled : pagination.current == pagination.last }"> 16 <a href="" ng-click="setCurrent(pagination.last)">Last</a> 17 </li> 18</ul>