title: Selecting and accessing items in ng-repeat
body: <p>I have an array of objects in a service that I want to display in a view like this</p>
  
  <pre><code>&lt;li ng-repeat="item in filteredItems = (resource.items | filter:multipleFilters..."&gt;
      &lt;span class="title"&gt;{{item.escaped_name}}&lt;/span&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>I want these objects to be selectable which is the easy part. Then I'd need to get the count of the selected items and be able to iterate over all of them to process/change data. </p>
  
  <p>What is the best method to save and access the selected items?</p>
  
  <p>Note that the selected items could change, for example a selected item could fall away due to changed filters. Also, I don't want to set a selected property on the objects in the array directly - the array of objects is in a service and used throughout the app in many lists and I don't want to "clean up" the selected property for each view.</p>