title: filter list of items when clicking category link
body: <p>I have  a list of items with "ng-repeat". Each item contains a div with a link title and link category. When clicking on a category, I want to filter the list of items, so that it only shows the items belonging to that category. how can I achieve that?</p>
  
  <p>So far I have a list of items:</p>
  
  <pre><code>  &lt;div class="link_line" ng-repeat="link in links | filter: ? "&gt;
      &lt;div class="title"&gt;&lt;a href="{{link.url}}" target="_blank"&gt;{{link.title}}&lt;/a&gt;&lt;/div&gt;
      &lt;div class="category_label" ng-click="filterCategory(link)&gt;{{ link.category }}&lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>And in the controller I have a function "filterCategory" which shows an alert with the link category. And I have the "filter: ?" where I guess the value of the filter has to come. Ths is the controller function:</p>
  
  <pre><code>  $scope.filterCategory = (link) -&gt;
      alert(link.category)
  </code></pre>
  
  <p>Any idea how to proceed? Thanks!</p>