Callback when switching tabs


#1

I use the ionic tabs. I need to know when the page is switched. For example, when you switch to the “Feed” tab, i need to run the update process. I tried to use the ionChange, but it is not called when switching tabs.


#2

try ionViewDidEnter

Also see: http://ionicframework.com/docs/v2/api/components/tabs/Tab/

<ion-tabs preloadTabs="false">
  <ion-tab (ionSelect)="chat()"></ion-tab>
</ion-tabs>