<ul class="pagination" ng-if="1 < pages.length">
    <li class="page-item" ng-repeat="pageNumber in pages track by $index" ng-class="{ active : pagination.current == pageNumber, disabled : pageNumber == '...' }">
        <a class="page-link" href="?page={{ pageNumber }}" ng-click="setCurrent(pageNumber);$event.preventDefault();">{{ pageNumber }}</a>
    </li>
</ul>
