title: Angular 2, using ngClass with conditionals in ngFor
body: <p>I have ngFor loop that displays data, and based on if something is true or false in that loop, how can I change css? What I tried, does not work for me.</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;div class="class" *ngFor="let something of something" [ngClass]="{'classno2': sent}"&gt;
      &lt;div&gt; {{something.name}}
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>TypeScript </p>
  
  <pre><code>something;
  
  this.something = [
      {name: "NAMEE", sent: false},
      {name: "NAMEE2", sent: true},
  ]
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>.class {
      color: red;
  }
  .classno2 {
      color: blue;
  }
  </code></pre>
  
  <p>I get no errors, but yet nothing changes.</p>