title: Using ng-repeat and ng-class on rows inside a table
body: <p>I am using AngularJS and the effect I want to get would be something similar to what this would produce, assuming it would work (which it doesn't).</p>
  
  <p>View</p>
  
  <pre><code>&lt;tr ng-repeat='person in people' ng-class='rowClass(person)'&gt;
    &lt;td&gt;.....info about person...&lt;/td&gt;
    &lt;td&gt;.....info about person...&lt;/td&gt;
    &lt;td&gt;.....info about person...&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>$scope.rowClass = function(person){
    ...return some value based upon some property of person...
  }
  </code></pre>
  
  <p>I realise that this code won't work because <code>person</code> is unavailable to <code>ng-class</code> as it will only be available to objects inside each row. The code is to get the idea of what I'm trying to do across: ie. I want to be able to have table rows that are created using <code>ng-repeat</code> whose class is also based on a condition which depends on access to the scoped feature of row itself eg. <code>person</code>. I realise I <strong>could</strong> just add ng-class on the columns but that is boring. Anyone have any better ideas?</p>