You can always use a custom filter if all else fails:
ng-repeat="d in data | myFormat"
JS:
app.controller('myCtrl', function ($scope) {
$scope.data = {
"firstName": "John",
"role": "Manager",
"status": {
"Id": 30,
"Status": "Appointment booked",
"statusDate": 1467826508775
},
"surname": "Smith",
"title": "Mr",
}
});
app.filter('myFormat', function () {
return function (x) {
if (x.status.Status == 'Appointment booked') {
return x;
}
};
});
As mentioned in the comments
ng-repeat="d in data | filter : {status: { Status : 'Apointment booked'}}"
also works
source
share