Navigating
Aurelia provides several ways to navigate between routes:
Programmatic Navigation
Use the router.navigate()
method:
You can also pass parameters:
Or use named routes with parameters:
Declarative Navigation
In your templates, you can use the route-href
attribute:
You can also use the router-view
element's route
attribute for creating navigation menus:
Last updated
Was this helpful?