Is an event fired when a sidemenu toggled open?


#1

I would like to do load some data from the server only once a sidemenu is toggled open. Is there an event i can listen to on the delegate?


#2

Yup, isOpen(), isOpenLeft(), isOpenRight(), getOpenRatio()

http://ionicframework.com/docs/api/service/$ionicSideMenuDelegate/


#3

but these aren’t events that i can listen to on scope. How do you suggest i use them to know that the menu opening has triggered?


#4

You can do angular $watch’s on functions. Try wiring it up to whichever isOpen method you want to monitor.