How do you do something like this in angular with ng-repeat? I\'ll be using the example from the documentation which inits an array with 2 friends, what if I wanted to only
Create a custom filter.
HTML:
and
JS:
var someApp=angular.module('someApp', []); someApp.filter('age', function() { return function(input, uppercase) { var out = []; for (var i = 0; i < input.length; i++) { if(input[i].age >= 26){ out.push(input[i]); } } return out; } });