Skip to content

Instantly share code, notes, and snippets.

@kennethlynne
Created January 19, 2014 21:17
Show Gist options
  • Save kennethlynne/8511143 to your computer and use it in GitHub Desktop.
Save kennethlynne/8511143 to your computer and use it in GitHub Desktop.
AngularJS Pagination filter (offset)
angular.module('Pagination', [])
.filter('offset', function () {
return function (input, offset) {
return (input instanceof Array)
? input.slice(+offset)
: input
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment