Sidemenu toggled by other menu button ionic


#1

I’m trying to display a back button in place of the side menu button, only when a bool variable is true (triggered by another event).

Here’s what I have, however, at the moment the back arrow icon is also firing the menutoggle function.

  <button [hidden]="isPickupRequested" ion-button icon-only menuToggle>
    <ion-icon name="menu"></ion-icon>
  </button>

  <ion-buttons left [hidden]="!isPickupRequested">
    <button ion-button icon-only (tap)="CancelPickup()">
      <ion-icon name="arrow-back"></ion-icon>
    </button>

PS. Only happens on android, ios is okay.