Which function get called when im open the side menu?

I need to trigger a function when side menu get opened how can i do that ?

I don’t know if there is an event when the menu opens, but may be adding a custom event on the html tag could work. Like :

<ion-menu [content]="content" persistent="true" (tap)="myCustomFunction()">

thank you ill try that out and mark it as answer if it worked

This also seems to be a thing

<ion-menu [content]="content" (ionOpen)="menuOpened()" (ionClose)="menuClosed()">

Would detect dragging the menu open too, I’m assuming :slight_smile:

1 Like

Worked like a charm ! Thanks