Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229670

Back button didnt stacked help

$
0
0

I cant fix this.
App.component.ts

export class MyApp {
@ViewChild(Nav) nav: Nav;
siparisPages: PageInterface[] = [
{
title: “Siparis Olustur”,
name: “SiparisTabsPage”,
component: SiparisTabsPage,
tabComponent: SiparisSatisPage,
index: 0,
icon: “clipboard”
},
{
title: “Sepet”,
name: “SiparisTabsPage”,
component: SiparisTabsPage,
tabComponent: SiparisSepetPage,
index: 1,
icon: “cart”
},
{
title: “Siparis Listesi”,
name: “SiparisTabsPage”,
component: SiparisTabsPage,
tabComponent: SiparisListePage,
index: 2,
icon: “filing”
}
];

stokPages: PageInterface[] = [
{
title: “Stok Sayim”,
name: “TabsPage”,
component: TabsPage,
tabComponent: StokSayımPage,
index: 0,
icon: “md-add”
},
{
title: “Stok Sayim Listesi”,
name: “TabsPage”,
component: TabsPage,
tabComponent: StokListePage,
index: 1,
icon: “ios-archive-outline”
}
];
rootPage: any;
constructor(
platform: Platform,
statusBar: StatusBar,
splashScreen: SplashScreen,
public app: App,
public splitPane: SplitPane,
public menu: MenuController
) {
platform.ready().then(() => {
statusBar.styleDefault();
splashScreen.hide();
this.rootPage = Welcome;
});

}

backToWelcome() {
const root = this.app.getRootNav();
root.popToRoot();
}

logout() {
//Api Token Logout

localStorage.clear();
this.menu.enable(false);
setTimeout(() => this.backToWelcome(), 1000);
this.nav.setRoot(Welcome);
}
openPage(page: PageInterface) {

this.nav.push(page.component, { item: page.index });
}
}

my app didn’t stacked page. what can i do ?

if i click the back button, directly closed the app. i need to fix this. Back button is completely invalid or stacked the page.

My app id is “app_id”: “7f59f520”,


Viewing all articles
Browse latest Browse all 229670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>