Created
January 19, 2014 21:17
-
-
Save kennethlynne/8511143 to your computer and use it in GitHub Desktop.
AngularJS Pagination filter (offset)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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