Route params.
Data loaded by a route.
A router context.
Returns the error that was thrown during component or data loading, or undefined
if there was no error.
Returns the current status of the controller:
Creates a new RouteController instance.
Route params.
Data loaded by a route.
A router context.
Instantly aborts the pending route loading for this controller.
The abort reason that is used for rejection of the loading promise.
Causes an enclosing Outlet to render a notFoundComponent.
Redirects the router to a new location.
A location or a URL to redirect to.
Reloads the data using dataLoader and component if it's not loaded yet.
Note: If there's no data loader then data is set to undefined
.
A controller rendered in a nested Outlet.
Readonly
paramsRoute params.
A controller rendered in an enclosing Outlet.
A promise that settles when the route loading is completed, or null
if there's no loading in progress.
Readonly
routeThe route this controller loads.
Readonly
routerThe router that this controller belongs to.
Manages state of a route rendered in an Outlet.