Should ionViewDidLoad inside a tab fire again if that tab is tapped after it is already selected?


#1

Hi,

In my new ionic 2 project which uses the tabs template, I put some logs inside ionViewDidLoad of each tab that I have in my tabs page. And I noticed that tapping on an already active tab is re-triggering the ionViewDidLoad. Is that by design?


#2

Has no one experienced this? O.o


#3

Hello,

Try :

ionSelected() {
// DO SOMETHING OR NOT
}

In your ‘HomePage’ for example.

Links : Capturing ion-tab click on active tab event

I Hope I could help you.


#4

This was probably fixed in 3.1.