Getting started
Installation
npm i @aurelia/routerConfigure the router
routerimport Aurelia from 'aurelia';
import { RouterConfiguration } from '@aurelia/router';
import { MyApp } from './my-app';
Aurelia
.register(RouterConfiguration.customize({
useUrlFragmentHash: true, // <-- enables the routing using the URL `hash`
}))
.app(MyApp)
.start();Create the routable components
Configure the routes
Using pushstate
Live examples
Last updated
Was this helpful?