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
Request hit only two image rest it only shows loading icon #256
Comments
@anup5708, are the other images (all images below the first two) outside the viewport? I guess you are using this slider (I have not been working with Ionic): https://ionicframework.com/docs/api/components/slides/Slides/? Can you try something like this: // Your controller
imageChange$ = new Subject();
slideChanged() {
this.imageChange$.next();
} <ion-list no-padding>
<ion-item>
<ion-slides pager (ionSlideDidChange)="slideChanged()">
<ion-slide *ngFor="let image of topNewsArray">
<ion-card>
<img [defaultImage]="global.loading" [lazyLoad]="image.url" [offset]="offset" [scrollObservable]="imageChange$" />
</ion-card>
</ion-slide>
</ion-slides>
</ion-item>
</ion-list> |
I follow the steps mentioned above now it's working fine as expected, Thanks @tjoskar |
Have a similar issue. However, when i tried to use the same fix. I am getting a runtime error. _co.slideChanged is not a function ionic 3. page.ts - here im getting a debug notice on Subject not found. TS.
page.html
|
Additional: Uncaught (in promise): ReferenceError: Subject is not defined ReferenceError: Subject is not defined |
Hi,
I am creating an app in Ionic 2 + angularfire2@4.0.0-rc.0 and integrate this lazy load plugins to show loading icon.
Below are my Code
I found that when my image request is two it show me loading icon as it receive response it display me two images correctly.
But when I have more than two images, it display me two image and the rest still shows me loading icon.
The text was updated successfully, but these errors were encountered: