When using ionSlideBox inside $ionicModal ionSlideBox throws an exception if the active_slide attribute is non-zero, i.e. start on slide 1 ion-slide-box[active_slide="1"]
TypeError: Cannot read property 'length' of undefined
at circle (ionic.bundle.js:8183)
at slide (ionic.bundle.js:8212)
at slide.select (ionic.bundle.js:8565)
at Object.fn (ionic.bundle.js:58470)
at Scope.$digest (ionic.bundle.js:24515)
at Scope.$apply (ionic.bundle.js:24783)
at HTMLButtonElement.<anonymous> (ionic.bundle.js:57602)
at HTMLButtonElement.eventHandler (ionic.bundle.js:12103)
at triggerMouseEvent (ionic.bundle.js:2870)
at tapClick (ionic.bundle.js:2859)
ionSlideBox evaluates active_slide watch variable BEFOREionic.views.Slider.setup() is complete, so slides.length is invalid. You get an Exception if active_slide is anything but 0
Type: bug
Platform: all
When using ionSlideBox inside $ionicModal ionSlideBox throws an exception if the
active_slide
attribute is non-zero, i.e. start on slide 1ion-slide-box[active_slide="1"]
ionSlideBox evaluates
active_slide
watch variable BEFOREionic.views.Slider.setup()
is complete, soslides.length
is invalid. You get an Exception ifactive_slide
is anything but 0http://codepen.io/anon/pen/xwVRMg?editors=101
click
Open Sign-in modal
to trigger, and see the JS inSignInModalCtrl
vm.slideCtrl.index=1
triggers the bug.vm.slideCtrl.index=null
avoids the problem by settingactive_slide
in a$timeout()