You can use $filter
on anything you want to filter on from the JSON response.
HERE is a contrived example of how filtering can be done on nested JSON element. Sample code is taken from one of the example of ng-table's usage with filters.
Main part to note in the app is
$scope.tableParams = new ngTableParams({
page: 1,
count: 10,
filter: {
'client': 'Bo' //Sample filter
}
}, {
total: data.length,
getData: function($defer, params) {
//Note the usage of built in angular filter
//which is injected in the app
var orderedData =
params.filter() ?
$filter('filter')(data, params.filter()) :
data;
$scope.users =
orderedData.slice((params.page() - 1) * params.count(),
params.page() * params.count());
params.total(orderedData.length);
$defer.resolve($scope.users);
}
});
Plunker works as expected (if I got your requirement correct). Give a shout if that something that is not what you are aiming at. :)