angular ngclass in ngfor code example
Example: ngClass withing ngFor
<div *ngFor="let some of something" [ngClass]="{'classno2': some.sent, 'class': !some.sent}">
<div> {{some.name}}
</div>
</div>
<div *ngFor="let some of something" [ngClass]="{'classno2': some.sent, 'class': !some.sent}">
<div> {{some.name}}
</div>
</div>