JSFiddle - React, Tailwind, and code Playground
HTML
<body ng-app="App" ng-controller="Main">
<pre ng-repeat="n in nums | filter:isOdd">
{{$index}}:{{$first}}:{{$middle}}:{{$last}}
</pre>
</body>
JavaScript
var app = angular.module('App', []);
app.controller("Main", function($scope) {
$scope.nums = [0, 1, 2, 3, 4, 5, 6];
$scope.isOdd = function(n) { return n % 2 === 1; };
});