MenuToggle button does not work after modal on ionic

0

I have a login screen that opens a modal, after I close this modal and give nav.setRoot () my menuToggle button to stop working, it only works after reload.

Am I forgetting something?

I tried something like:

Button:

  <ion-header no-border>
    <button id="btn-menu" ion-button icon-only menuToggle persistent=“true” color="dark">
      <ion-icon name="menu"></ion-icon>
    </button>

  </ion-header>

I call modal through this function:

 modalLogin(){
    let modalLogin = this.modalCtrl.create(LoginModalPage);
    modalLogin.present();
  }

In my page loginModalPage.ts I change page like this:

this.viewCtrl.dismiss().then(() => { this.navCtrl.setRoot(FooteerTabPage);

My button stops working, preventing you from opening the menu.

    
asked by anonymous 26.10.2018 / 03:51

0 answers