Lifecycle Events

Learn about Ionic and Angular lifecycle event hooks and incorporate them into the Ionic Navigation application.

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 active
  • ionViewDidEnter: event runs when the page has completed entering and is now the active page
  • ionViewWillLeave: event runs when the page is about to leave and no longer be the active page
  • ionViewDidLeave: event runs when the previously active page has completed leaving
...