array + object filters
by neptune001
HTML
<div ng-app="myApp" ng-controller="FooCtrl">
{{title}}
<div ng-repeat="tweet in tweets | filter:{2:'final'}">
{{tweet[3]}}
</div>
<div ng-repeat="product in products | filter: { color: 'red' }">
{{product.name}}
</div>
</div>
JavaScript
var app = angular.module('myApp', []);
app.controller('FooCtrl', function($scope) {
$scope.title = "Array filter test";
$scope.tweets = [
["674155405560401920",1449566148,"Frankenstee","Up!Final Shipment day tomorrow! Cheers! https:\/\/t.co\/CF2F9syWBm"],
["674155405384159232",1449566148,"_FinalMess","I posted a new photo to Facebook https:\/\/t.co\/9fKHz0FmOy"]
];
$scope.products = [
{ id: 1, name: 'test', color: 'red' },
{ id: 2, name: 'bob', color: 'blue' }
];
});