Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images not loading on scrolling #384

Closed
maxakash opened this issue Apr 3, 2019 · 2 comments
Closed

Images not loading on scrolling #384

maxakash opened this issue Apr 3, 2019 · 2 comments

Comments

@maxakash
Copy link

maxakash commented Apr 3, 2019

I am using you your lazyloading in ionic 3 to load images . But few images are only and rest images do not load on scrolling. I am not using any reference to content.
My code
I am importing your plugin as
LazyLoadImageModule.forRoot({ preset: intersectionObserverPreset })

I am using it in my app as
<div class="grid"> <ion-row class="row unlimited-items"> <ion-col col-6 class="col" *ngFor="let item of products "> <ion-card tappable (click)="getProduct(item.id)"> <img class="image" style="height:auto;width:100%;" [defaultImage]="loadingAnimation" [lazyLoad]="item.images[0].src"> <h5 *ngIf="item.name" class="card-name">{{item.name}} </h5> <p class="pricehtml" [innerHTML]="item.price_html"> </p> </ion-card> </ion-col> </ion-row> </div>
I have attached screenshot. Awaiting for your reply.

Screen Shot 2019-04-03 at 3 31 44 PM

@maxakash
Copy link
Author

maxakash commented Apr 3, 2019

Updating to ng-lazyload-image@5.1.2 and angular 7 solved the issue. Thanks for resolving .

@tjoskar
Copy link
Owner

tjoskar commented Apr 3, 2019

NIce! I close this one then.

@tjoskar tjoskar closed this as completed Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants