ionic-framework: bug: $ionicSlideBoxDelegate.next() causing an exception after upgrading to 1.0.0
Type: <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>
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 18 (1 by maintainers)
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 though