0
votes

I'm working in ionic2 , here i'm having a login page and on it will redirect to a side menu with swipe tabs page**HomePage output home.html**. I've used **this.nav.push('HomePage')**to redirect from login page to home page. But I'm not getting the menu icon, it disappears and back icon is showing up.

Can anyone help me out?

1

1 Answers

0
votes

This is happening because you used nav.push instead of nav.setRoot. In Ionic, pushing a page adds it to a stack, and the back button pops it off the stack.

You want to use setRoot here:

this.nav.setRoot('HomePage');