ui-router-server / redirects / RouteDeclaration
Interface: RouteDeclaration
Defined in: redirects.ts:20
A state's contribution to the url-addressable route set.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
name | string | The state name; dotted names nest under their parent, as in ui-router. | redirects.ts:22 |
params? | Record<string, unknown> | Param declarations for this state's own placeholders (shorthand defaults or ParamDeclarations). | redirects.ts:26 |
redirectTo? | string | RedirectTarget | Data redirect, mirroring ui-router's redirectTo subset: a url landing on this state goes to the target state instead. A string target keeps the matched params; a RedirectTarget with params replaces them (core's `result.params | |
url? | string | Url segment appended to the ancestors' segments; a url-less state is structural only (never matched, never a redirect target). | redirects.ts:24 |