title: How to use a filter in a controller?
body: <p>I have written a filter function which will return data based on the argument you are passing. I want the same functionality in my controller. Is it possible to reuse the filter function in a controller? </p>
  
  <p>This is what I've tried so far:</p>
  
  <pre><code>function myCtrl($scope,filter1)
  { 
      // i simply used the filter function name, it is not working.
  }
  </code></pre>