title: How to use parameters within the filter in AngularJS?
body: <p>I want to use parameter in filter, when I iterate some arrays with ng-repeat</p>
  
  <p>Example:</p>
  
  <p>HTML-Part:</p>
  
  <pre><code>&lt;tr ng-repeat="user in users | filter:isActive"&gt;
  </code></pre>
  
  <p>JavaScript-part:</p>
  
  <pre><code>$scope.isActive = function(user) {
      return user.active === "1";
  };
  </code></pre>
  
  <p>But I want to be able to use filter like</p>
  
  <pre><code>&lt;tr ng-repeat="user in users | filter:isStatus('4')"&gt;
  </code></pre>
  
  <p>But its not working. How can I do something like that?</p>