I have this code:
<thead>
<th class="dude" *ngFor="let tp of column_names;let i=index">{{tp}}</th>
</thead>
How do I apply a class based on index? E.g. first index gets class dude_0 when the rest get dude_1?
e.g.
<thead>
if i==0
<th class="dude_0" *ngFor="let tp of column_names;let i==index"{{tp}}</th>
if i>0
<th class="dude_1" *ngFor="let tp of column_names;let i=index"{{tp}}</th>
</thead>