When to use ionViewWillEnter, ionViewDidEnter, ionViewDidLeave, ionViewWillLeave?

I know what each of them do. What I don’t know is when to use each and why?


According to their function you can use them if you need to perform any action maybe when the page already loaded, about to leave a page etc

Yes, I know that. What I don’t know is why, Could it be that because ionViewWillEnter is executed when the DOM isn’t ready or I can use native plugins there, or should it be in ionViewDidEnter?

Those are the kind of questions I have, what I can do in each of them.

You can do anything within those events since you already know what each of them is meant for