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?
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?
just use (select)=“your_function()” like
<ion-tab (select)="profileClick()" tabIcon="people"></ion-tab>