Skip to main content

Subscribe to Router Events

  Subscribe To Router Events provide a mechanism to track and respond to navigation changes within an application. These events help monitor route transitions, allowing developers to execute specific actions based on navigation state changes.

When a user navigates from one route to another, they can configure logic to execute after the navigation completes. One key event is triggered when navigation successfully finishes, confirming that the new route is fully loaded.

Use Case​

  • Enabling Analytics and Logging: Useful for monitoring user behaviour and tracking route visits.
PropertyDescriptionComments
LabelSpecify label that represents purpose of construct to be used in a logic flow.It is recommended to provide a simple precise label that can improve the readability.
CommentSpecify whether to comment this construct or not. Either Yes or No.If marked as Yes, the construct is treated as a commented expression and ignored in code generation.
DescriptionA brief explanation of the Subscribe To Router Events purpose.Helps users understand the Subscribe To Router Events functionality.

Double-click on the edge path to configure the properties as required and then click Save.

PropertyDescriptionComments
PathSelect Type of the edge path choose one of the below. onevent afteronevent: Specify the logic to execute on the route events. after:Specify the logic after the route events logic.

Subscribe to Router Events