How to access child router in Aurelia?
问题 I have two child routers. I can navigate from one to other. But from the child router view, how can I navigate? Below line of code gives the parent router instance. import {Router} from 'aurelia-router' How to get child router instance? 回答1: To create a child router, create a new router on a child route in the same way you created a router on the parent route. Then, set the router as a property of the view model class so you can access it throughout your view model. import { Router } from