Lifecycle Events
Learn about Ionic and Angular lifecycle event hooks and incorporate them into the Ionic Navigation application.
We'll cover the following...
Ionic lifecycle events
We can control what happens within our app before, during, and after pages have loaded with the following Ionic-specific navigation lifecycle events:
ionViewWillEnter
: event runs when the requested page is about to enter and become activeionViewDidEnter
: event runs when the page has completed entering and is now the active pageionViewWillLeave
: event runs when the page is about to leave and no longer be the active pageionViewDidLeave
: event runs when the previously active page has completed leaving