Closed NeckbreakerPascal closed 2 years ago
Thanks for the issue. It looks like you are installing ionic-angular
, which is Ionic Framework v3. I see you are also using the latest version of Ionic Framework (@ionic/angular
) in other places. Can you give this a try again without using ionic-angular
?
Thanks for the issue. It looks like you are installing
ionic-angular
, which is Ionic Framework v3. I see you are also using the latest version of Ionic Framework (@ionic/angular
) in other places. Can you give this a try again without usingionic-angular
?
Hey there, thanks for the answer. You mean in the Stackblitz? I only see '@ionic/angular' same for that in the real app, I just checked it.
import {IonContent, IonSlides} from '@ionic/angular';
Yeah in the StackBlitz you have the following in app.module.ts
:
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
...
IonicModule.forRoot(MyApp)
This is going to initialize an Ionic v3 application. Ionic v3 had ion-slides
, just a much older version of it.
Hey there, ok got it.
I used a wrong template on stackblitz. I updated the whole thing which was much easier for now, checkout the new one here: https://stackblitz.com/edit/ionic-v4-angular-tabs-lppmj3?file=src/app/tab1/tab1.page.ts
Thanks! I was able to reproduce the issue. This looks like an issue in Swiper, the technology that ion-slides
depends on. We have some updates coming soon regarding ion-slides
so I will look to see if the issue is fixed there.
Thanks for the issue! With the release of Ionic 6, we made the decision to deprecate ion-slides
in favor of using Swiper.js directly.
Moving forward, ion-slides
will only receive critical security fixes, and the component will be removed in Ionic 7. As a result, I am going to close this issue.
We have prepared migration guides for each of the 3 JavaScript frameworks we support, so developers can get started migrating right away.
Migration for Angular Migration for React Migration for Vue
We believe this change will lead to a healthier Ionic ecosystem as it frees up resources for the Ionic team to dedicate to other areas of this project while still giving developers options for carousels in their apps. Since ion-slides
currently uses Swiper under the hood, the behavior of your carousels should remain the same even after you migrate.
For more information on the reasoning for and benefits of this change, please see the ion-slides documentation.
Thank you!
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.
Ionic version: [ ] 4.x [x] 5.x
I'm submitting a ... [x] bug report [ ] feature request
Current behavior:
Expected behavior:
Steps to reproduce:
Related code: Tried my best to make a stackblitz, but there is some kind of an error because of the Viewchild and the imports. For sure you can see the overall structure of the slides and how they work.
https://stackblitz.com/edit/ionic-v4-angular-tabs-lppmj3?file=src/app/tab1/tab1.page.ts
Other information:
Ionic info: