title: Angular: How to change the color of cell table if condition is true
body: <p>I have an object which has a variable called <code>changeColor</code>. In my html table I want to change the cell color if <code>changeColor</code> is true. I am using angular.</p>
  
  <pre><code>    &lt;tr ng-repeat="list in results"&gt;
      &lt;% if (!{{list.changeColor}} ) %&gt;
      &lt;% { %&gt;
          &lt;td bgcolor="red"&gt;{{list.value}}&lt;/td&gt;
      &lt;% } %&gt;
      &lt;td&gt;{{list.price}}&lt;/td&gt;
  </code></pre>
  
  <p>But after testing it is always red and the <code>&lt;% if (! ) %&gt; &lt;% { %&gt; &lt;% } %&gt;</code> is written in my html page! Can you please help me?</p>
  
  <p>Tested this </p>
  
  <pre><code>&lt;td style=".red {bgcolor: red;} .black {bgcolor: black;}"
   ng-class='{red : list.changeColor, black: !list.changeColor}'&gt;
   {{list.price}}&lt;/td&gt;
  </code></pre>
  
  <p>But it does not work</p>