How to open the home page after the user login


Hello please I work on Ionic 3 and I would like to know how to close my login window and open a new window after a user has logged into my application.Thanks


hi @durvilchat

you could use NavController in login credential true

import { NavController } from 'ionic-angular';

class MyComponent {
  constructor(public navCtrl: NavController) {

  doLogin (){
     // you can pass parameter optiona
    //     this.navCtrl.push('HomePage',{'optional parameter'})
     //if you want back in last page 

   // if do not back page 

to more info


Thanks Thanks my friend



would be preferred. As you do not want the back icon to appear in the header.


if your issue will solve you can like and solution mark of question