SHARE
TWEET

Untitled

a guest Dec 27th, 2014 170 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function(){
  2.   'use strict';
  3.   angular.module('itStartFrom', [])
  4.   //We already have a limitTo filter built-in to angular,
  5.   //let's make a startFrom filter
  6.   .filter('startFrom', function() {
  7.     return function(input, start) {
  8.       start = +start; //parse to int
  9.       return input.slice(start);
  10.     };
  11.   });
  12. })();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top