question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: $ionicSlideBoxDelegate.next() causing an exception after upgrading to 1.0.0

See original GitHub issue

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>

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
JunkMyFunkcommented, Sep 8, 2015

I get the same issue using $ionicSlideBoxDelegate.next();. It seems that adding delegate-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

0reactions
marlonmantillacommented, Oct 24, 2016

Having same issue here too, neither of the solutions above worked for me.

Read more comments on GitHub >

github_iconTop 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 >
ionic-v1.x - Yarn - Package Manager
Fast, reliable, and secure dependency management.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found