Ionic v4 - I have a question on Page Navigation

#1

I am using ion-route-outlet and ion-menu-toggle

I have two pages. page A and page B.

User access page A and page A initialize with life cycle event.

User enter page B.

User go back to page A and How can Page A get ‘life cycle event again?’

Page A don’t get any ionic life cycle event nor Angular life cycle event.

Thank you.

#2

Which lifecycle hook are you trying to use?

ionViewWillEnter(){
alert(‘view will enter’);
}

ionViewDidEnter(){
alert(‘view did enter’);
}

#3

Oh, … Sorry. It’s my bad.

Page A actually gets ‘ionViewDidEnter()’ and ‘ionViewWillLeave()’ events…