Reputation: 6561
I have this *ngFor inside a div:
<div class="divRow" *ngFor="let userspec of userspecs; let i = index" id="ChosenCar">
Is it possible to access the i outside of the *ngFor? I would like to hide header columns of my table if i <= 0 but the ngFor is on the div for the data rows after the header columns.
Thanks
Upvotes: 0
Views: 1279