I'm utilizing the (deferLoad) method to load an image gallery in a more controlled manner. Is there any event available that can inform me about which items are currently visible?
The main goal is to load a set of data along with an image path, and then trigger the loading of the image when the item becomes visible.
Is there a way to determine which products are visible so that I can send their images to an API, either through an event or some other method?
.TS
<ul class="mdc-image-list my-image-list first">
<li class="mdc-image-list__item" style="height:200px" *ngFor="let image of Images; let i = index"
(deferLoad)="image.show = true">
<ng-container *ngIf="image.show">
<img [src]="image.url" style="height: 100%;width: 100%;">
<div class="mdc-image-list-supporting"
style="display: flex; align-items: center;flex-direction: column;padding: 2px">
<span class="mdcImageListLabel">{{image.name}}</span>
</div>
</ng-container>
</li>
</ul>