title: AngulaJS Hide/Show tablerows depending on several conditions/hide all
body: <p>I have a table, in which i would like to only show rows that match some variables, as well as hide/show all rows.</p>
  
  <p>So, with additional variables to add later, how would i implement a hide/show all functionallity preferably with keeping the &lt;"a> tags</p>
  
  <pre><code>&lt;a href="" class="collapsectl" id="collapse-expand"&gt;&lt;span class="glyphicon glyphicon-triangle-bottom"&gt;&lt;/span&gt; Expand all&lt;/a&gt;
  &lt;a href="" class="collapsectl" id="collapse-hide"&gt;&lt;span class="glyphicon glyphicon-triangle-right"&gt;&lt;/span&gt; Hide all&lt;/a&gt;
  
  &lt;table style="width: 50%" class="table table-striped table-bordered table-hover"&gt;
      &lt;colgroup&gt;
          &lt;col class="col-xs-1"&gt;
          &lt;col class="col-xs-3"&gt;
          &lt;col class="col-xs-3"&gt;
          &lt;col class="col-xs-1"&gt;
      &lt;/colgroup&gt;
   &lt;thead&gt;
    &lt;th&gt;ID&lt;/th&gt;
    &lt;th&gt; name&lt;/th&gt;
    &lt;th&gt; name&lt;/th&gt;
    &lt;th&gt;Action&lt;/th&gt;
   &lt;/thead&gt;
   &lt;tbody&gt;
    &lt;tr class="{{ a.b ? 'danger' : 'success' }}" ng:repeat:start="entity in entities"&gt;
     &lt;td&gt;{{a.id}}&lt;/td&gt;
     &lt;td&gt;{{a.name}}&lt;/td&gt;
     &lt;td&gt;{{a.asd.name}}&lt;/td&gt;
     &lt;td&gt;
      &lt;a class="glyphicon glyphicon-pencil" href="#project/{{project.id}}"&gt;&lt;/a&gt;
      &lt;a class="glyphicon glyphicon-triangle-bottom" href="" class="rowtrigger" data-toggle="collapse" data-target="#detail_{{project.id}}"&gt;&lt;/div&gt;
     &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr ng:repeat:end&gt;
     &lt;td colspan="4" class="collapse-row"&gt;
      &lt;div id="detail_{{a.id}}" class="collapse statuslabel"&gt;
       &lt;span ng:repeat="version in a.versions" class="label label-{{ version.b ? 'danger' : 'success' }}"&gt;
        {{version.version}}
       &lt;/span&gt;
      &lt;/div&gt;
     &lt;/td&gt;
    &lt;/tr&gt;
   &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>