title: How to change the color of entire row if value is missing. inside <td> element. Here value is coming from api which we are looping through and getting
body: <p>Here if the <code>value</code> inside <code>&lt;tr&gt;</code> comes <code>null</code> for the cell then the entire row should have different color. My code look like this:</p>
  <pre><code>&lt;ng-container *ngFor=&quot;let row of table?.rows; let rowIndex = index&quot;&gt;
    &lt;tr&gt;
       &lt;td *ngFor=&quot;let value of row.data; let valueIndex =  index;&quot;&gt;
         &lt;ng-container *ngIf=&quot;row.edit_mode; else nonEditTable&quot;&gt;
             &lt;input type=&quot;text&quot; placeholder=&quot;Enter data&quot; [value]=&quot;value 
              (change)=&quot;onTablevalueChanged($event.target.value, rowIndex, valueIndex)&quot; 
              class=&quot;form-control&quot;&gt;
         &lt;/ng-container&gt;
         &lt;ng-template #nonEditTable&gt;
           &lt;span class=&quot;truncate table-truncate&quot; [pTooltip]=&quot;value&quot; tooltipZIndex=&quot;12000&quot;&gt;
              {{ value }}
           &lt;/span&gt;
         &lt;/ng-template&gt;
      &lt;/td&gt;
  
    &lt;/tr&gt;
  &lt;ng-container /&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/9p2B0.png" rel="nofollow noreferrer">It should be coming like this, as the row first value is missing else it should be white.</a></p>