Ionic2 Select Tab event


#1

In my Ionic 2 tabbed application, when I click on a tab, in the console I see:

select tab – 1

and

select tab – 2

and so on.

Is there a way for me to trap these click events so that I can perform some action when a tab is clicked on?


#2

just use (select)=“your_function()” like

<ion-tab (select)="profileClick()" tabIcon="people"></ion-tab>