How to handle menu opening and closed events?


#1

In my controller I have imported MenuController and passed it to controller, then in the onPageLoad I have tested it as working properly with this.menu.open(). Now I am trying to detect when the menu is open or closed like:

this.menu.subscribe('opening',(d)=>{
    console.log("Menu is opening");
});

but that never seems to fire, and I get no console logs. :disappointed: