How to active function when changing the page

So, when I root to a page I want to trigger:

this.menu.enable(false);

by default, how to do this?

thanks for help!

Hey @Qabrix,

Check out this blog article on Ionic lifecycle hooks for your pages:

https://blog.ionicframework.com/navigating-lifecycle-events/

You can then call menu.enable(false) that way.

thanks for replying :smile: