I am building an application with Ionic 2. Once successfully logged in, the home page is pushed on top of the login page. The only problem with this is that the "back" icon appears at the top of the home page. I want a way of redirecting to the home page upon login such that the "back" icon does not appear.
Thanks
You have to setRoot
. That way the new component is the root, which in your case would be the HomePage component.
this.navCtrl.setRoot(HomePageComponent, {}, {animate: true, direction: 'forward'});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With