Created
March 4, 2015 10:17
-
-
Save jiin/f2ed5c9671d27a6fef04 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// <img ng-repeat="n in q.r.gems | range" | |
.filter('range', function() { | |
return function(total) { | |
var to = parseInt(total); | |
var iterations = []; | |
for(var i = 0; i < to; i++) | |
iterations.push(i); | |
return iterations; | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment