ionic 4 navigate back to home page tab is not auto sliding images
mehraj786 opened this issue · 0 comments
Hi i am facing issue for ion auto slide in home page tab when i navigate back from previous page
Your Environment
Ionic:
Ionic CLI : 5.4.13
Ionic Framework : @ionic/angular 4.11.5
@angular-devkit/build-angular : 0.801.3
@angular-devkit/schematics : 8.1.3
@angular/cli : 8.1.3
@ionic/angular-toolkit : 2.1.1
Cordova:
Cordova CLI : not installed
Cordova Platforms : android 9.0.0
Cordova Plugins : not available
Utility:
cordova-res : 0.14.0
native-run : 1.0.0
System:
Android SDK Tools : 26.1.1 (C:\Users\noone\AppData\Local\Android\Sdk)
NodeJS : v10.16.3 (C:\Program Files\nodejs\node.exe)
npm : 6.9.0
OS : Windows 10
- Running in Simulator:
- Cordova version (
cordova -v
): - Cordova platform version (
cordova platform ls
): - Plugin configuration options:
- Link to your project:
Context
I used this code inside home page tab
ionViewWillLeave(){
this.slides.stopAutoplay();
}
ionViewDidEnter(){
console.log("inside home page");
this.slides.startAutoplay();
} Not Working and same methods are calling inside tabs.page.ts file and prints console then this works.
But auto sliding is not working insie homepage tab how to fix this