Router(module, submods, routes)¶
Almighty class controlling the routing internals. It is automatically instantiated by the main application Module
Trueand the application components have not issued a router-outlet, the router instance will do it.
Trueand the components define no router-outlet for the output of a route, the
selectorwill be issued automatically
RouteSnapshotcorresponding to the active route
A list of the defined
Routes(children routes are reachable inside the
The automatically calculated base href for the app
route_to(pathname, *args, **kwargs)¶
As the name indicates, this method routes to:
Absolute or relative path.
..are supported as path elements
kwargswill be passed as arguments to the route
Navigate once backwards
Navigate once forward
This method navigates away from the app to the given
URI or Absolute or relative path.
kwargswill be passed as query arguments the route