for example:
I want to change 4 tabs to 3 tabs when I click an option in the menu (which changes the selected.switch value).Below code is working only for the first load but not dynamically .Can we change the number of tabs dynamically?
<ion-tab [root]=“tab1Root” tabTitle=“Home” tabIcon=“home”>
<ion-tab *ngIf=‘selected.switch==2 ’ [root]=“tab2Root” tabTitle=“about” tabIcon=“information-circle” >
<ion-tab *ngIf=selected.switch==1’ [root]=“tab4Root” tabTitle=“info” tabIcon=“information-circle” >
<ion-tab [root]=“tab3Root” tabTitle=“Contact” tabIcon=“contacts”>