-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
ion-slides clobbers class attribute #6275
Comments
Looks like this is the relevant line: https://github.com/driftyco/ionic/blob/2.0/ionic/components/slides/slides.ts#L197 It used to be I think the solution is just to remove the |
I think that's fair to just have it removed. Any objections? @brandyscarney thoughts? |
@adamdbradley It is there to make the pagination unique. It is necessary for multiple slides in one app to work, otherwise they all will use the same pagination. If it gets removed then you'll have to find another way to pass the pagination uniquely. |
@brandyscarney Can you provide a sample of how to have multiple slides in one single page? I'm having trouble generating slides using ng-repeat:
|
Hey @louisgv, it looks like you are using Ionic v1. This issue is more for v2. 😄 I recommend taking a look at the docs for v1: http://ionicframework.com/docs/api/directive/ionSlideBox/ or checking our forums: https://forum.ionicframework.com/ |
This will be fixed in the |
Short description of the problem:
When upgrading from beta4 to beta6, the
ion-slides
component clobbers any class set on the component.What behavior are you expecting?
It should add to the classes instead.
Steps to reproduce:
<ion-slides>
component with a class attachedIn the template:
Reality:
Which Ionic Version? 1.x or 2.x
2.0.0-beta.6 (This used to work in 2.0.0-beta.4)
Plunker that shows an example of your issue
http://plnkr.co/edit/ZKFyjTiPG5M1lnEw5CPW?p=preview
Run
ionic info
from terminal/cmd prompt: (paste output below)Cordova CLI: 6.0.0
Ionic Framework Version: 2.0.0-beta.6
Ionic CLI Version: 2.0.0-beta.24
Ionic App Lib Version: 2.0.0-beta.14
OS: Distributor ID: Ubuntu Description: Ubuntu 15.10
Node Version: v5.8.0
The text was updated successfully, but these errors were encountered: