My left side menu needs to persists across all states, but each state can optionally have a right side menu with whatever content that state chooses. For now, I've implemented this by making the content of the left side menu a directive of it's own that each state has to include. It's not very DRY and the left side menu is reloaded across states. It works, but it's not ideal.
The following approach is intuitive, but doesn't work because the right side-menu is nested in the ion-nav-view instead of being a direct child of ion-side-menus.
ion-side-menus
ion-side-menu-content
ion-nav-view // states want to include their own right side menu
ion-side-menu(side="left")
main-nav
// some-state.jade
some-directive
ion-side-menu(side="right") // side menu is broken because it's nested
If the right side menu is a direct child of ion-nav-view, is there a way for a state to decide what content is in it?
ion-side-menus
ion-side-menu-content
ion-nav-view
ion-side-menu(side="right")
// side menu content here according to current state...
ion-side-menu(side="left")
main-nav
ionic, but it seems to be usingui.router. Withui.routeryou should be able to define different named views and define what they are for each state. github.com/angular-ui/ui-router/wiki/Multiple-Named-Views - New Devng-if="rightMenu". - m59<ion-nav-view>where the states render their default view? What is<ion-side-menu>? You say "right side menu is nested in the ion-nav-view" but I don't see how in your HTML (and if you don't mind converting to normal HTML from jade, it would help - not everyone is familiar with jade) - New Dev