bug: $ionicSlideBoxDelegate.next() causing an exception after upgrading to 1.0.0
See original GitHub issueType: <span ionic-type>bug</span>
Platform: <span ionic-platform>mobile</span> <span ionic-webview>webview</span>
<span ionic-description>I just upgraded to 1.0.0 yay me but this is the only thing I can’t figure out.
When calling any function that moves to the next slide such as this one
$ionicSlideBoxDelegate.next()
This is the exception that I get…
TypeError: Cannot read property 'length' of undefined
at circle (http://localhost:8100/vendor/ionic/js/ionic.bundle.js:8050:21)
at slide (http://localhost:8100/vendor/ionic/js/ionic.bundle.js:8079:14)
at ionic.views.Slider.ionic.views.View.inherit.initialize.slide.select (http://localhost:8100/vendor/ionic/js/ionic.bundle.js:8432:7)
at http://localhost:8100/vendor/ionic/js/ionic.bundle.js:105:46
at Array.forEach (native)
when diving into the code, the slides variable gets undefined.</span>
<span is-issue-template></span>
Issue Analytics
- State:
- Created 8 years ago
- Comments:18 (1 by maintainers)
Top Results From Across the Web
$ionicSlideBoxDelegate - Service in module ionic
Start sliding again if the slideBox was stopped. currentIndex(). Returns: number The index of the current slide. slidesCount().
Read more >Radio Buttons: 1.0.0-beta.1 - CodePen
Since error.stack is read-only in Safari, I'm overriding e and not e.stack ... function () { * return function (exception, cause) { *...
Read more >ion-slide-box Update Issue - Stack Overflow
My problem here is that $ionicSlideBoxDelegate.update(); doesn't update and set the pager index to 0 with the new number of images of the...
Read more >Viewing online file analysis results for 'Stock Edge v4.4.0 ...
... and cancel the next UI update * // to prevent updating time after the DOM ... function() { * return function(exception, cause)...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I get the same issue using
$ionicSlideBoxDelegate.next();
. It seems that addingdelegate-handle="slider"
to the<ion-slide-box>
in the template and referencing it using$ionicSlideBoxDelegate.$getByHandle('slider').next();
and$ionicSlideBoxDelegate.$getByHandle('slider').previous();
work reliably in 1.1.0 thoughHaving same issue here too, neither of the solutions above worked for me.