How to hide ion-tab?

I want to hide a ion-tab. Setting ng-show=false does not work, the tab is still shown.

<ion-tab title="Tab 3" icon="ion-ios-camera" href="#/page1/page5" ng-show="false">
<ion-nav-view name="tab3">
1 Like

This works for me:

<ion-tab [root]="tab4Root" tabTitle="{{ 'Products' | translate }}" tabIcon="document" show="{{isSupplier()}}"></ion-tab>

you can bind it to the boolean return of the method directly:

I’ve wrote a whole Demo-Project for this. Take a look, it might help you to understand the tabs better.