JSFiddle - React, Tailwind, and code Playground
HTML
<body ng-app ng-controller="ctrl">
<div data-ng-repeat="thing in things | filter:filterEvenStartFrom(0)">
<div ng-bind="thing"></div>
</div>
<button ng-click="things.push(things[things.length - 1] + 1)">Add item</button>
<button ng-click="things.shift()">Remove item from start</button>
<div>{{things}}</div>
</body>
JavaScript
function ctrl($scope) {
$scope.things = [0, 1, 2, 3, 4, 5, 6];
$scope.filterEvenStartFrom = function (index) {
return function (item) {
return index++ % 2 == 1;
};
};
}