title: Angularjs markup table row or colums depends on value
body: <p>Is there any way to add classes on row or column depends on values. If column "anzahl" is null, the row background-color has to be "gray" and the column "anzahl" background-color goes to "red.</p>
  
  <pre><code>    &lt;body ng-app ng-init='articles = [
     {"id":"1","name":"A&amp;R","type":"P77 ","anzahl":"0"},
     {"id":"2","name":"Accuphase","type":"AC5 ","anzahl":"1"},
     {"id":"3","name":"Acoustical Systems","type":"Archon","anzahl":"1"}
    ]'&gt;
    &lt;div class="container"&gt;
  
  
      &lt;table class="table"&gt;
        &lt;tr ng-repeat="article in articles"&gt;
          &lt;td&gt;{{article.name}}&lt;/td&gt;
          &lt;td&gt;{{article.type}}&lt;/td&gt;
          &lt;td&gt;{{article.anzahl}}&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/table&gt;
  
    &lt;/div&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p><a href="http://jsfiddle.net/f3q2jxpj/" rel="nofollow">jsfiddle</a></p>