The Route Route.path string type.
Optional
Readonly
childrenOptional array of children for this Route.
Optional
Readonly
componentOptional Route component.
Readonly
pathRequired Route path.
Optional
Readonly
slotsOptional mapping of elements to their slots.
Generated using TypeDoc
Interface describing the shape of a Route. A Route must consist of at least a path and may specify a component, as well as slots, which will be rendered into the RouterOutlet when the Route is Router.navigated to. Furthermore a Route may also specify children.
Example
Define a Route:
See
Router