This is a quick and dirty way to accomplish what you need.
First, create a custom filter in the controller like this:
$scope.customFilter = function(param1, param2) { return function(item) {
then in html you do it
<tr ng-repeat="item in infoData | filter:customFilter(param1, param2)"> <td>{{item.data1}}</td> <td>{{item.data2}}</td> <td>{{item.data3}}</td> <td>{{item.data4}}</td> </tr>
this is an example with a custom filter
app.filter('customFilter', function (param1, param2) { return function (item) {
and now in html you do the following:
<tr ng-repeat="item in infoData | customFilter(param1, param2)"> <td>{{item.data1}}</td> <td>{{item.data2}}</td> <td>{{item.data3}}</td> <td>{{item.data4}}</td> </tr>
source share