Ng-show for tab item

I would like to show a tab link for a specific user type only… I’m unable to find an example, can someone help with this?

give user specific tab an identifier in html, use that to make it “display: none” in css and when user type is detected, overwrite it to “display: block” with javascript.

In the tempate used by the root tab abstract route I simply added the hidden attribute to the ion-tab directives and set the vars in the controller used by the abstract state.


<ion-tab title="Some Tab" icon-on="ion-ios-information" icon-off="ion-ios-information-outline" ui-sref="mytabs.someTab" hidden="{{shouldHideTab}}">
    <ion-nav-view name="someTab"></ion-nav-view>