Page 1 of 1

IONIC Tabs - how to tell which one has been clicked

Posted: Wed Mar 14, 2018 4:42 pm
by Andy Parker

I have several instances of IONIC tabs (not on the index page).

I need to know which tab the user has clicked as I need to perform initialisation in some cases.

I tried adding an ng-click to each of the tabs, but this does not get fired.
The only ng-click that seems to get fired is the actual tab item where you select the live tab.
Can you tell me how I can tell which tab has been selected please?


IONIC Tabs - how to tell which one has been clicked

Posted: Wed Mar 14, 2018 9:12 pm
by Serhii Kulibaba

Hello Andy,

it is possible to use ng-click on tabs component (which differs from tabs on the index page): https://getsatisfaction.com/apperyio/...