I want to perform different actions if the side menu is expose aside (tablet) or not (smarphone).
Indeed I have a list of items; when I’m on smartphone the click on an item change the page, but when I’m on tablet I just want to display informations on aside menu.
Is there a programmatically way to know if the aside menu is open ?
I know but the problem is the function $ionicSideMenuDelegate.$getByHandle(‘my-handle’).isOpen() always respond false even if the side menu is open with expose aside directive…
I’m not sure if it is a bug or not, but I feel like using $ionicSideMenuDelegate.isOpen() should return true when exposeAside is active. You could submit an issue for it and the Ionic team can determine if it is.
Your solution with $exposeAside.active works like a charm !
I’m agree with you, the $ionicSideMenuDelegate.isOpen() shoud return true when expose aside is active. But maybe Ionic want to differenciate an open state and expose aside state… don’t know.