I have an iterable which is being used in an ngFor
<div *ngFor="let item in items">{{item.name}}</div>
I also have a method getNumberOfSpecialItems() which returns the number of special items, say N.
I would like to apply a class "special" to the first N divs in the ngFor. What is the best way to do this?