-
Notifications
You must be signed in to change notification settings - Fork 188
bug: Ion-slides error returning to 1st slide with loop #33
Comments
From @PhilHuot on February 3, 2016 20:13 I'm having the same issue. There is a bug when you use ng-repeat in ion-slides if the loop option is set to true. Any help would be appreciated. Tested on ionic 1.2.4 Just a note: I tested it using the deprecated ion-slide-box and its working fine. |
From @wittayaatt on March 4, 2016 7:2 I have found the workaround. I am not so sure if this part of code is actually about but I noticed they remove ng-repeat of looped slide here. So, I add the code to remove ion-slide-page children's ng-repeat.
Full ionic.bundle.js start at line 11006
Hope this help. |
From @Aknilam on March 6, 2016 0:53 +1 I faced similar problem, I modified your Code Pen http://codepen.io/elaval/pen/XXpoLy. Here is delayed change of slides data and auto change of slides. @wittayaatt unfortunately your code didn't help in this case |
From @ruslan-fidesio on August 10, 2016 17:0 Stumbled upon the same problem, here is an example : https://codepen.io/ruslan-fidesio/pen/qNLqYk using the nightly build. Does anyone have a workarround ? |
From @TzaddikO on October 12, 2016 14:52 @ruslan-fidesio I don't think that's the same issue.. However this is still broken in 1.3.1 Here is an updated modification of elaval's Code Pen: http://codepen.io/toltman/pen/mAKEOx |
From @rgarciape on January 10, 2017 11:41 Hi @elaval , Have you found any workaround? I´m testing ion-slide component with the option loop set and I suppose my Issue is more or less the same. The index that I obtain when I load the component is loaded returnning activeIndex = 2, but only running on devices. However, when I launch the app via ionic serve it works fine. Here are my ionic info: Cordova CLI: 6.4.0 Thanks in advance¡ |
I'm having same issue.
|
I had a similar issue and found that using an ng-if to remove the ion-slides element until the data is loaded into the scope worked for me. |
same issue below options is helpful but not perfect |
From @elaval on January 4, 2016 16:14
Type: bug
Platform: all
Problem on ionic 1.2.1 & ion-slides
I have a slide box (ion-slides) with looping & slides generated via ng-repeat. Each slide has an "ion-list" with items that are also generated via ng-repeat.
For example,
Slide1: A,B,C
Slide2: D,E,F
Slide3: G,H,I
In the controller:
this.data = [
{items:["A","B","C"]},
{items:["D","E","F"]},
{items:["G","H","I"]}
]
When I swipe right on the last side, I go back to the first slide but the list content of the first slide is now distorted:
Slide1: A, A, A, B, B, B, C, C, C
The same happens if I swipe left on the first slide going to the last slide.
Example provided on Code Pen: http://codepen.io/elaval/pen/XXpoLy
Copied from original issue: ionic-team/ionic-framework#4901
The text was updated successfully, but these errors were encountered: