Programatically acessing tabTitle


#1

Hi, All!

Is that possible for me accessing tabTitle property programmatically?

tabs.html

<ion-content padding>
  <ion-tabs>
    <ion-tab [root]="tab1Root" tabTitle="tab 01"></ion-tab>
    <ion-tab [root]="tab1Root" tabTitle="tab 02"></ion-tab>
    <ion-tab [root]="tab1Root" tabTitle="tab 03"></ion-tab>  
  </ion-tabs>
</ion-content>

yes! they share same tab. The have almost the same behaviour

tab1Root.ts:

export class tab1RootPage {

  constructor(navCtrl:NavController) {
    let s = navCtrl.tabTitle  // ????????? type script error! runs on web but does not compile for mobile
  }
}

Anybody knows why erro above occurs? Is there another way to access tabTitle programatically?

Thanks in advance!


#2

If you don’t get any better answers, I would use segments for this instead of tabs.