title: Show an aggregated list in angularjs
body: <p>In my model I have data similar to:</p>
  
  <pre><code>$scope.list = [{id:0,tags:['tag1','tag2']},{id:2,tags:['tag2']}};
  </code></pre>
  
  <p>I want to show a list of tags (contains unique values of 'tag1' and 'tag2') with checkboxes. Hopefully something like:</p>
  
  <pre><code>&lt;div ng-repeat="tag in list.tags"&gt;
      &lt;label class="checkbox"&gt;
          &lt;input type="checkbox" ng-model="filter.tag" /&gt;
          {{tag}}
      &lt;/label&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I know how to filter the main list based on whats checked if I hard code the list, but not how to generate the list of unique tags automatically.</p>