© Matthew Duffield 2018
Matthew DuffieldPractical App Development with Aurelia https://doi.org/10.1007/978-1-4842-3402-0_3

3. Routing

Matthew Duffield1 
(1)
West Linn, Oregon, USA
 

Aurelia supports routing out of the box. There is no additional work needed to bring in the router. You simply need to configure your router and use the ‘router-view’ custom element. In this chapter, we will be going over the capabilities and power of routing in Aurelia.

Router Configuration

Getting your application configured to use Aurelia’s router only takes a few steps. First, you need to ensure that you have a ‘router-view’ custom element on your view. A typical example of this would be placing this custom element in your app.html file. Consider the following example: ...

Get Practical App Development with Aurelia : Leverage the Power of Aurelia to Build Personal and Business Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.