I have an app that uses a left side menu throughout the app, and a right side menu conditionally. The right is rendered in a named directive that only loads in one state assuming proper permissions. I’m also using the side-menu’s is-enabled attribute with a $rootScope variable.
I have the variable being set to false on each $stateChangeStart, and being overridden on the appropriate parent state. This works except when I navigate away from the state that uses the right side bar, i can still drag the content as if I were viewing the right side menu, but it instead shows the left side menu.
I’m wondering if this is a bug or if there is another way I should be doing this.