Interface: RouteInfo
API / @xmachines/play-router / RouteInfo
Defined in: play-router/src/types.ts:61
The route information of a state node
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
isAbsolute | boolean | It tells you if the route path is absolute, which means that it starts with / | play-router/src/types.ts:71 |
metadata | RouteMetadata | The original route metadata | play-router/src/types.ts:78 |
pattern? | string | The route pattern with its parameters, for example /profile/:userId, when routePath holds a parameter | play-router/src/types.ts:69 |
routable | boolean | It tells you if this state has a route, which means that it has a meta.route field. true = it has a meta.route field, and it can receive a play.route event | play-router/src/types.ts:76 |
routePath | string | The route path of meta.route | play-router/src/types.ts:67 |
stateId | string | The identifier of the state: node.id, or path.join(’.’) | play-router/src/types.ts:63 |
statePath | string[] | The segments of the state path, from the root | play-router/src/types.ts:65 |