Send data from page to tabs toolbar


#1

I have tabs app that contains a toolbar, how to I update the toolbar from my page?

Tabs.html:

<ion-header>
  <ion-toolbar>
    <ion-buttons start>
      <button ion-button icon-only (click)="openSettings()">
        <ion-icon color="light" name="settings"></ion-icon>
      </button>
    </ion-buttons>
    <ion-title>{{pageName}}</ion-title>
  </ion-toolbar>
</ion-header>

<ion-content no-bounce>

<super-tabs indicatorColor="light" [tabsPlacement]='position' selectedTabIndex="0" id="mainTabs" (tabSelect)="onTabSelect($event)">
  <super-tab [root]="tab1Root" icon="home"></super-tab>
    <super-tab [root]="tab2Root"icon="contacts"></super-tab>
    <super-tab [root]="tab3Root" [rootParams]="{'id':'Patrik'}" id="maptab" icon="map" ></super-tab>
  <super-tab  [root]="tab4Root"  icon="boat"></super-tab>
  <super-tab  [root]="tab5Root"  icon="logo-rss"></super-tab>
  <super-tab  [root]="tab6Root" icon="information-circle"></super-tab>
</super-tabs>
</ion-content>

#2

Solved it by using a class with setters and getters