title: Filter an array of objects by a property containing a substring in AngularJS
body: <p>Let's say i have an array like: </p>
  
  <pre><code>array = [{
      title: "foo1",
      content: "bar1"
  },{
      title: "foo2",
      content: "bar2"
  },{
      title: "foo3",
      content: "bar3"
  }];
  </code></pre>
  
  <p>Now i want to filter this array to have the objects that their title <strong>contains</strong> a character like '3'.
  So now my filtered array should be </p>
  
  <pre><code>filteredArray = [{
      title:"foo3",
      content: "bar3"
  }];
  </code></pre>
  
  <p>I've tried</p>
  
  <pre><code>    filteredArray = $filter('filter')(array, {
          title: "foo3"
      });
  </code></pre>
  
  <p>But the problem with this is that title needs to be exactly "foo3". if i put "3" it won't filter that because it doesn't check if it contains it, it looks for an exact match.</p>
  
  <p>Any ideas how to achieve this?</p>