Created
July 28, 2014 19:34
-
-
Save miguelbermudez/d5091aba4f0888b4e580 to your computer and use it in GitHub Desktop.
"Start From" Filter
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
.filter('startFrom', function() { | |
return function(input, start) { | |
if (input) { | |
start = +start; //parse to int | |
return input.slice(start); | |
} | |
return []; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment