Ionic2 event before menuToggle called

Hi, I’m looking for how to check the condition before side menu is open. Eg. I would like to check if user is loggin then open the side menu.

Any idea how to do this?


Why don’t you just disable the menu toggle if the user is not logged in?

I thought this too, but I remembered that in another post, the guy wanted menu functionality even when a user wasn’t logged in. He wanted the menu to have a log out button if the user was logged in, so he needed to know when the user was logged in. Hopefully thegiffary doesn’t require something like that

One can disable specific menu items conditionally as well.

1 Like

I didn’t know that! I’ll check out the docs about that