title: Angular - Filter based on nested array boolean
body: <p>I'm trying to find a good way to filter on click, based on a boolean value that's within a nested array.</p>
  
  <p>My current scope looks like the following</p>
  
  <pre><code>$scope.persons = [
     { 
       firstName : 'Drew',
       lastName : 'Minns',
       views : [
         {
           name : 'View 1',
           support : true
         },
         {
           name : 'View 2',
           support : false
         }
       ],
     },
     { 
       firstName : 'Peter',
       lastName : 'Parker',
       views : [
         {
           name : 'View 1',
           support : false
         },
         {
           name : 'View 2',
           support : false
         }
       ],
     }
    ];
  </code></pre>
  
  <p>I'm looking to add a filter that sorts based on the boolean value of each view object. The problem that I'm running into is that I can't access that value without iterating over every array. Doing that is making it tough to access each individual value without referencing the array number. </p>
  
  <p>I want to hide the parent object based on whether or not the specific "view" object has a true or false in the support field.</p>
  
  <p>Again, I'm looking to do this on click, so the idea is that you click a button for 'View 1' and only those parent objects with true value for support shows up. There will be multiple buttons for each "view" so I'm looking to provide the action of drilling down based on support for views.</p>
  
  <p>Here's a plunkr <a href="http://plnkr.co/edit/ipi8vKEbxps2H89HTg00?p=preview" rel="nofollow">http://plnkr.co/edit/ipi8vKEbxps2H89HTg00?p=preview</a></p>