So I’m using supertabs for the nice sliding navigation it provides. But the problem I encountered is that I can’t use ionSelect to change the ion-title of the navbar whenever I switch tabs. The one I found on stackoverflow was for ion-tabs
Read all the documention on supertabs found on https://github.com/zyra/ionic2-super-tabs but it never mentions anything similar to ionSelect. Does anyone have any fix for this?
here’s my code that doesn’t work:
<ion-header>
<ion-navbar color="dark">
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title>{{title}}</ion-title>
</ion-navbar>
<super-tabs toolbarBackground="dark" toolbarColor="main" tabsPlacement="bottom" indicatorColor="main"
[config]="{ sideMenu: 'left' }">
<super-tab [root]="tab1Root" icon="icon-ai-announce" (ionSelect)="this.title ='Home'"></super-tab>
<super-tab [root]="tab2Root" icon="icon-ai-rules" (ionSelect)="this.title ='Rules'"></super-tab>
<super-tab [root]="tab3Root" icon="icon-ai-prison-visit" (ionSelect)="this.title ='Visit'"></super-tab>
<super-tab [root]="tab4Root" icon="icon-ai-comments" (ionSelect)="this.title ='Comment'"></super-tab>
</super-tabs>