Defines a PageEvent component.
Page lifecycle events are fired during various stages of navigation:
• onCanEnter
Deprecated - See AppGuard onCanActivate.
• onCanLeave
Deprecated - See AppGuard onCanDeactivate.
• pageWillLoad
Runs when the page has initialized. This event only happens once per page being created.
• pageDidLoad
Runs when the page has loaded. This event only happens once per page being created. If a page leaves but is cached, then this event will not fire again on a subsequent viewing. The onDidLoad event is good place to put your setup code for the page
• pageWillEnter
Runs when the page is about to enter and become the active page
• pageDidEnter
Runs when the page has fully entered and is now the active page. This event will fire, whether it was the first load or a cached page
• pageWillLeave
Runs when the page is about to leave and no longer be the active page
• pageDidLeave
Runs when the page has finished leaving and is no longer the active page
• pageWillUnload
Runs when the page is about to be destroyed and have its elements removed
You can add a PageEvent component under a Page or a SharedComponent component.
Within a PageEvent component, you can add and chain any type of action such as CallSequence, CallFulSync or CustomAction component.
For more information: Ionic Page Events
Name | Description |
---|---|
Comment | Describes the object comment to include in the documentation report. This property generally contains an explanation about the object. |
Event type | Defines the event type. |
Is active | Defines whether the component is active. |