NathanWalker / ng2-image-lazy-load

Angular2 image lazy loader library.
http://nathanwalker.github.io/ng2-image-lazy-load
MIT License
160 stars 36 forks source link

It doesn't lazy load on my page #21

Closed YonatanKra closed 7 years ago

YonatanKra commented 7 years ago

I've copied the example. Here's my template:

<div imageLazyLoadArea>
  <div *ngFor="let image of images">
    <div class="spinner"></div>
    <img [imageLazyLoadItem]="image.url"/>
  </div>
</div>

It seems as if all of the images load when I load the page. In any event, I don't see the spinner. Any tips?

Edit: regarding the lazy load issue - it works. My "problem" was I was working locally and the images loaded too fast for me to notice. Now I'm trying to get images from a remote server, and I can see the lazy loading in action, but no spinner.

Is it a part of the package?

Edit: again, my bad. Just saw we can add a custom loading circle.

Great and simple module 👍