Skip to content

ion-slides options (like autoplay) not working anymore? #9783

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1BJK903 opened this issue Dec 24, 2016 · 4 comments
Closed

ion-slides options (like autoplay) not working anymore? #9783

1BJK903 opened this issue Dec 24, 2016 · 4 comments

Comments

@1BJK903
Copy link

1BJK903 commented Dec 24, 2016

Ionic problems with ion-slides. I haven't changed anything at all, just updated. The autoplay was working before updating. When I remove all the options, the slides just says the same as with the options. So it looks like he is not reading / getting the options. What might be the problem here? I don't see any errors in the console btw.

Cordova CLI: 6.4.0 
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
ios-deploy version: 1.9.0 
ios-sim version: 5.0.8 
OS: macOS Sierra
Node Version: v6.8.1
Xcode version: Xcode 8.2.1 Build version 8C1002
Ionic version: "1.3.1-nightly-4219"

Is this a known issue? I am using

<ion-slides options="options" slider="slider">
....
...
<ion-slide-page>
...
</ion-slide-page>
</ion-slides>

And:

  $scope.options = {
    autoplay: 2500,
    loop: false,
    speed: 1000,
    slidesPerView: 1,
    centeredSlides: true
  }
@1BJK903 1BJK903 changed the title ion-slides autoplay not working anymore? ion-slides options (like autoplay) not working anymore? Dec 24, 2016
@jgw96 jgw96 added the v1 label Dec 27, 2016
@djcprinse
Copy link

I have kind of the same issue. However I am not using autoplay but initialSlide. Before updating initialSlide worked perfectly, however now I it not working anymore... I am using ngRepeat at the <ion-slide-page>

Cordova CLI: 6.4.0 
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
ios-deploy version: 1.9.0 
ios-sim version: 5.0.13 
OS: macOS Sierra
Node Version: v6.9.2
Xcode version: Xcode 8.2.1 Build version 8C1002
Ionic version: "1.3.2"

HTML:

<ion-slides options="self.sliderOptions" slider="data.slider">
   <ion-slide-page ng-repeat="month in c.months">
      ......
   </ion-slide-page>
</ion-slides>

JavaScript

function getMonth() {
   var date = new Date()
   return date.getMonth()
}

self.sliderOptions = {
   runCallbacksOnInit: false,
   pagination: false,
   initialSlide: getMonth()
};

This code was working perfectly before update, however now it is not working anymore... I even tried to set initialSlide: 2 to a static value however this did not work either. Even creating 12 <ion-slide-page> manual did not work. At last I tried to set the options in <ion-slides options="{runCallbacksOnInit: false, pagination: false, initialSlide: 2}" slider="data.slider">. None of these things worked, so the only reason I can think about is that the update broke the functionality.

@jgw96
Copy link
Contributor

jgw96 commented Jan 13, 2017

This issue was moved to ionic-team/ionic-v1#47

@jgw96 jgw96 closed this as completed Jan 13, 2017
@1BJK903
Copy link
Author

1BJK903 commented May 11, 2017

Someone who can help, please?

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 3, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants