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

Ionic 2 Lazy loading not working on scroll #62

Closed
partharanjan opened this issue Oct 26, 2016 · 2 comments
Closed

Ionic 2 Lazy loading not working on scroll #62

partharanjan opened this issue Oct 26, 2016 · 2 comments

Comments

@partharanjan
Copy link

Hi,
When I am trying to scroll the page, Image is not updating.
I am using latest version of ionic and ng2-lazy-load library

@tjoskar
Copy link
Owner

tjoskar commented Oct 29, 2016

Hi,

You probably have to change the scroll target. Ionic have a static height on the window and uses an inner container for the scroll.

See #1 and #2 for example:

<ion-content padding class="page1" #container>
  <h2>Welcome to Ionic!</h2>
  <p style="height: 1000px;">
    This starter project comes with simple tabs-based layout for apps
    that are going to primarily use a Tabbed UI.
  </p>
  <img [src]="defaultImage" [lazyLoad]="image" [offset]="offset [scrollTarget]="container.scrollElement">
</ion-content> 

and some extra information here: #37 (comment)

@tjoskar
Copy link
Owner

tjoskar commented Dec 13, 2016

Closing this, please reopen if you still have any issues.

@tjoskar tjoskar closed this as completed Dec 13, 2016
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