Angular: Empty Fiddle
http://angularjs.org/
HTML
<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<div ng-controller="MyCtrl">
<p ng-repeat="item in items" ng-bind="item"></p>
</div>
JavaScript
var myApp = angular.module('myApp',[]);
myApp.filter('gt', function () {
return function ( items, value ) {
var filteredItems = []
angular.forEach(items, function ( item ) {
if ( item > value ) {
filteredItems.push(item);
}
});
return filteredItems;
}
})
function MyCtrl($scope) {
$scope.items = [1,2,3,4,5,6,7,8,9];
$scope.minValue = 3
}