Skip to content

Instantly share code, notes, and snippets.

@bohoffi
Created December 13, 2016 09:16
Show Gist options
  • Save bohoffi/1e517c30f9875ee84cab49496e5f0ac7 to your computer and use it in GitHub Desktop.
Save bohoffi/1e517c30f9875ee84cab49496e5f0ac7 to your computer and use it in GitHub Desktop.
Angular 1 paging directive
<div class="paging">
<a ng-if="currentPage > 1" href="{{paging.prevLink}}" class="prev-link">{{paging.prevLabel}}</a>
<span ng-if="currentPage > 1 && currentPage < totalPages" class="sep">{{paging.sep}}</span>
<a ng-if="currentPage < totalPages" href="{{paging.nextLink}}" class="next-link">{{paging.nextLabel}}</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment