title: Filtering by multiple checkboxes in AngularJS
body: <p>first time I've posted a question on here, so apologies in advance if I breach any Stack Overflow etiquette! :-)</p>
  
  <p>I'm having a go at some AngularJS for the first time in order to create a proof-of-concept for my boss. It's a basic car hire listings app, with a list of results in the main column, and a filter panel down the side. I've managed to pull in the results from a JSON object, and apply a basic filter, as below;</p>
  
  <pre><code>&lt;article data-ng-repeat="result in results | filter:search" class="result"&gt;
      &lt;h3&gt;{{result.carType.name}}, &amp;pound;{{result.price.value}}&lt;/h3&gt;
      &lt;img class="car-type" alt="{{result.carType.name}}" src="{{result.carType.image}}" /&gt;
      &lt;ul class="result-features"&gt;
              &lt;li&gt;{{result.carDetails.hireDuration}} day hire&lt;/li&gt;
              &lt;li data-ng-show="result.carDetails.airCon"&gt;Air conditioning&lt;/li&gt;
              &lt;li data-ng-show="result.carDetails.unlimitedMileage"&gt;Unlimited Mileage&lt;/li&gt;
              &lt;li data-ng-show="result.carDetails.theftProtection"&gt;Theft Protection&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/article&gt;
  </code></pre>
  
  <p>
      <h2>Filters</h2></p>
  
  <pre><code>&lt;fieldset&gt;
  Doors: 
  &lt;select data-ng-model="search.carDetails"&gt;
      &lt;option value=""&gt;All&lt;/option&gt;
    &lt;option value="2"&gt;2&lt;/option&gt;
    &lt;option value="4"&gt;4&lt;/option&gt;
  &lt;/select&gt;   
  
  &lt;/fieldset&gt;
  </code></pre>
  
  <p></p>
  
  <p>...one thing I haven't been able to work out yet though, is how to add a group of checkboxes to apply a filter, for say, 'car type' which would have options like 'mini', 'compact', 'family' and so on - and the user would be able to filter by one or more option at a time. I know I need to use 'ng-model', and perhaps 'ng-change', I just don't know how to apply it to a group of checkboxes...?</p>
  
  <p><strong>Update</strong>: I've created a plunker so you can see where I'm up to:
  <a href="http://plnkr.co/edit/lNJNYagMC2rszbSOF95k?p=preview" rel="nofollow noreferrer">http://plnkr.co/edit/lNJNYagMC2rszbSOF95k?p=preview</a></p>