© 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.