Active tab in the ion-side-menu


#1

I’m using the in my application which works nicely, but I want to have it so the currently select item in the menu (ie the current view/page you are on) is highlighted with some CSS.

Does anyone know if there is a way to determine the currently selected view/page?

Thanks in advance :smile:


#2

If you are using ui-route, have you tried this: http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.directive:ui-sref-active ?


#3

Brilliant, didn’t even think about looking at the router state, thanks for the heads up.