A default parent router with child routers
问题 Consider the following two classes: import { Router, RouterConfiguration } from 'aurelia-router'; export class MainPage { router: Router; configureRouter(config: RouterConfiguration, router: Router) { config.map([ { route: ['', 'entities'], name: 'entities', moduleId: './entities/entities', nav: true, title: 'Entities' }, { route: 'structures', name: 'structures', moduleId: './structures/structures', nav: true, title: 'Data Structures' }, ]); this.router = router; } } And import { Router,