In AngularJS, how can I pass parameters to a custom filter function? In this case, I need both `task` and `status` to be available in the filter function. 

But Angular only injects `task`. How can I add `status`?

HTML

```
<div ng-repeat="status in statuses">
    Selected Status: {{ status.title }
    <ul>
        <li ng-repeat="task in tasks | filter:customFilter">
            Task Status: {{ task.status }
        </li>
    </ul>
</div>

```

JS

```
$scope.customFilter = function( task, status ) 
{
    // use task and status to show only those tasks that have the selected status
};

```

I have tried `<li ng-repeat="task in tasks | filter:customFilter( task, status )">` but that did not work.