Structs§
- Back
- Declarative
Router - Location
- A complete navigation target. History stores
Location, rather than a matched route identifier, so dynamic parameters and query state survive back/replace. - Navigate
- Path
Params - Replace
- Route
- Route
Change - RouteId
- Route
Match - Route
Matches - Route
Subscription Token - Router
- Router
Context - Router
Snapshot
Enums§
Traits§
Functions§
- create_
router - index
- Defines the default child for a parent path.
- layout
- Defines a pathless visual layout. Its view should include
outlet()where the selected descendant belongs. - not_
found - Defines a sibling fallback. Normal siblings are always attempted before it.
- outlet
- An Outlet is a retained component boundary. Parent layouts do not subscribe to child selection and therefore keep local state/effects while descendants change.
- redirect
- Defines an absolute replace redirect. Redirects run after a committed render.
- route
- Defines a path-matched route. Root patterns are absolute and child patterns are relative.
:namecaptures one decoded segment and*namecaptures the remaining decoded path. - scope
- Groups child routes below a path without adding another visual component.