Page Life Cycle events and Tabs


#1

i have a issue using Life cycle Events
eg:
In Tab1 :ionViewWillEnter()=> fires
ionViewWillLeave() => fires
On clicking
Tab 2 : ionViewWillEnter()=> fires
ionViewWillLeave() => fires
On clicking
Tab 1 again: ionViewWillEnter()=> not fires
ionViewWillLeave() => not fires


#2

I think you should handle this behavior using the ionChange function attached to the ion-tabs, (ionChange) = “myFunc($ev)” . You have all your information you need in the $ev parameter.
The reason i recomend to use ionChange is because the life cycles from tabs are so hard to deal with , i tell you from my own experience