Pass events and data from ionic tab child to parent

  android, angular, ionic-framework, typescript

I have a parent page which defines the tab bar. I have 2 child pages to this tab bar. I want to capture the scroll events from the child and hide the tab bar while scrolling. How do I pass the ion-content scroll events or any data from the child page to the parent page which contains the tab bar?

  <ion-tab-bar slot="bottom" #tab>
    <ion-tab-button tab="open">
      <ion-icon name="folder-open"></ion-icon>
      <ion-label>Open Items</ion-label>
    </ion-tab-button>

    <ion-tab-button tab="closed">
      <ion-icon name="checkmark"></ion-icon>
      <ion-label>Closed Items</ion-label>
    </ion-tab-button>
  </ion-tab-bar>
</ion-tabs>````

Source: Android Questions

LEAVE A COMMENT