Defines a single route.
A route represents a single or multiple sections in the URL. It defines the behavior of a page in response to URL updates. A route can act as a content producer or as middleware for child routes.
The type of the result produced by the route.
The type of additional route-specific data. Defaults to an empty object.
The type of user-defined context-specific data. Defaults to an empty object.
Optional
Readonly
The name of the route.
The path pattern that the route matches.
Defines a single route.
A route represents a single or multiple sections in the URL. It defines the behavior of a page in response to URL updates. A route can act as a content producer or as middleware for child routes.