Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created August 29, 2022 05:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lydemann/4a429dfb46f65f3c341a52c6d8d7cd93 to your computer and use it in GitHub Desktop.
<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