-
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
ionic2: slideTo Runtime Error Cannot read property 'length' of undefined #10523
Comments
So you have the slides inside of a component that is loading tabs as well? |
@mhartington Yes! http://plnkr.co/edit/tO0dkp?p=preview Related code:
There's another question. |
Seems to be something wrong with the Slides internal '_slides' array because even calling In the Plunker, comment out: |
Hello all, I am going to close this issue as a duplicate of #10830 |
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. |
Ionic version: (check one with "x")
[ ] 1.x
[ x ] 2.x
I'm submitting a ... (check one with "x")
[ x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
Expected behavior:
When i used slideTo() in ionViewDidEnter() and onSlideDidChange(), all going well.
But , i write slideTo() into onTabsChange(){}.I got the Runtime Error.
Why?
Steps to reproduce:
Related code:
home.html
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):Similar:
#10499
The text was updated successfully, but these errors were encountered: