title: How to use checkbox to filter results with Angular?
body: <p>I am trying to apply a filter using checkboxes.</p>
  
  <p>The checkboxes are shown correctly:</p>
  
  <pre><code>&lt;div data-ng-repeat="cust in customers"&gt;
      &lt;input type="checkbox" data-ng-model="search.city" data-ng-true-value="{{ cust.city }}" data-ng-false-value=""/&gt; {{ cust.city }}
  &lt;/div&gt;
  </code></pre>
  
  <p>but when checking any checkbox, nothing happens:</p>
  
  <pre><code>&lt;table&gt;
  
      &lt;!-- table heading goes here --&gt;
  
      &lt;tbody&gt;
          &lt;tr data-ng-repeat="customer in customers | filter : search"&gt;
              &lt;td &gt;
                  {{ customer.firstName }}
              &lt;/td&gt;
              &lt;td &gt;
                  {{ customer.lastName }}
              &lt;/td&gt;
              &lt;td &gt;
                  {{ customer.address }}
              &lt;/td&gt;
              &lt;td &gt;
                  {{ customer.city }}
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>The table shows all the customers. </p>
  
  <p>What I want to achieve is: when one or more checkboxes are checked, the table has to show only these rows which match the condition of the checked checkboxes.</p>
  
  <p>What do I have to do to get this working?</p>