I have an <ng-container *ngFor='let column of columns'></ng-container>
which displays multiple times on the page because of the *ngFor
. I want to apply the "sticky" attribute (directive) to only the first of these ng-container elements. Not to the others. How can I do that? The output then should look like this:
<ng-container sticky></ng-container>
<ng-container></ng-container>
<ng-container></ng-container>
<ng-container></ng-container>
...