title: Angular function filter comparator example
body: <p>Can someone give me an example of how to use Angular filter comparator?</p>
  
  <p>From official doc:</p>
  
  <blockquote>
    <p>function(actual, expected): The function will be given the object value and the predicate value to compare and should return true if the item should be included in filtered result.</p>
  </blockquote>
  
  <p>There is a great blog post talking about Angular filter:
  <a href="http://sarahbranon.com/post/69604997957/fun-with-angularjs-filters-part-1-the-filter" rel="noreferrer">Fun with AngularJS filters - Part 1: the <code>filter</code> filter</a></p>
  
  <p>However, at the end of it, where I am looking for some useful example of the function comparator, I still found nothing.</p>
  
  <blockquote>
    <p>For more particular matching needs, you can pass a function instead of a boolean as the comparator argument.</p>
  </blockquote>
  
  <p>I have tried few combinations by myself. Neither adding the function at the end of the expression or pointing to a function in scope do the work.</p>