Router events
You can subscribe to various router events using Aurelia's event aggregator. This is useful for things like showing loading indicators, tracking page views, or responding to navigation errors.
Available events include:
RouterEvent.Processing
: Fired when navigation starts.RouterEvent.Complete
: Fired when navigation completes (regardless of success or failure).RouterEvent.Success
: Fired when navigation completes successfully.RouterEvent.Error
: Fired when navigation fails.RouterEvent.Canceled
: Fired when navigation is canceled.
These events provide detailed information about the navigation process, allowing you to create rich, responsive user experiences around your application's routing.
Last updated
Was this helpful?