-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Virtual Scroll: not working with Ionic2.rc0 #8311
Comments
Hello, thanks for opening an issue with us! Would you mind posting a repo I can use to reproduce this issue? |
Thanks for your answer. Git repository here: |
I figured out that somehow the approxItemHeight is undefined.
This code is working for me with: |
I've found the issue in the code and created a PR #8350 |
Hello, Thanks for your feedback. this one solve the following error:
So i can run the blank project with Virtual Scroll without error. Anyway, i still have the first error in my project:
To reproduce in the blank/simple project, i have added "[virtualTrackBy]="id". And I have the following error:
Updated repository: |
This is a different problem. virtualTrackBy needs a function as input and should be set on ion-list this code should work
let me know if you need further explanations |
Thank you for your explanation. I was bad using virtualTrackBy function. This does not create an error in previous versions of Ionic. I close this issue. |
Virtual Scroll show few items (only 4 items but list have 2003) HTML Code <ion-list [virtualScroll]="Searchpayers" Please help |
Hi, Could you try with this:
There is a mix of single and double quote in your code |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Hello,
I migrated my project to Ionic2.rc0, and i have the following error:
To isolate the problem, I created a new project and I added the virtual scroll as below:
Template:
Component:
When i go to the contact page, i have the following error:
Cordova CLI: 6.3.0
Gulp version: CLI version 1.2.2
Gulp local:
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS:
Node Version: v5.12.0
The text was updated successfully, but these errors were encountered: