Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created Aug 29, 2022
Embed
What would you like to do?
<ng-container *ngFor="let image of images; idx = index">
<img [attr.loading]="idx < 2 ? 'eager' : 'lazy"/>
</ng-container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment