title: Color coding ng-grid cells based on numeric cell values
body: <p>I have a special condition whereby the values inside a cell can be 1,2,0 or -N. Depending on these values the background color on the ng-grid cell should change. I have made an attempt to do this on the plunker</p>
  
  <pre><code>http://plnkr.co/edit/tpl:FrTqqTNoY8BEfHs9bB0f?p=preview
  </code></pre>
  
  <p>But I GREEN both times even when the value is 1 or 2. I can see that most probably my syntax is not correct, although CHROME didn't complain. Here is a snippet of my cell</p>
  
  <pre><code>$scope.gridHours = { 
                      data : 'hours',
                      columnDefs  : [ 
                                      {field : 'caseId', displayName : 'Case ID'},
                                      {field : 'EHStatus.TOPPER.code', displayName : 'TOPPER Status Code',cellTemplate: '&lt;div class="ngCellText" ng-class="{\'green\' : row.getProperty(\'EHStatus.TOPPER.code\') == \'1\' ,\'red\' : row.getProperty(\'EHStatus.TOPPER.code\') == \'2\'}" &gt;{{ row.getProperty(col.field) }}&lt;/div&gt;'},
                                      {field : 'EHStatus.SFT.code', displayName : 'SFT Status Code'},
                                      {field : 'EHStatus.SPD.code', displayName : 'SPD Status Code'},
                                      {field : 'EHStatus.RSC.code', displayName : 'RSC Status Code'}
                                  ],
                      enableColumnResize : true
                      };
  </code></pre>