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?
Yup, isOpen()
, isOpenLeft()
, isOpenRight()
, getOpenRatio()
http://ionicframework.com/docs/api/service/$ionicSideMenuDelegate/
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?
You can do angular $watch’s on functions. Try wiring it up to whichever isOpen method you want to monitor.
1 Like