title: How do I bind to list of checkbox values with AngularJS?
body: <p>I have a few checkboxes:</p>
  
  <pre><code>&lt;input type='checkbox' value="apple" checked&gt;
  &lt;input type='checkbox' value="orange"&gt;
  &lt;input type='checkbox' value="pear" checked&gt;
  &lt;input type='checkbox' value="naartjie"&gt;
  </code></pre>
  
  <p>That I would like to bind to a list in my controller such that whenever a checkbox is changed the controller maintains a list of all the checked values, for example, <code>['apple', 'pear']</code>.</p>
  
  <p>ng-model seems to only be able to bind the value of one single checkbox to a variable in the controller.</p>
  
  <p>Is there another way to do it so that I can bind the four checkboxes to a list in the controller?</p>