Skip to content

ui-router-server / redirects / compileRoutes

Function: compileRoutes() ​

ts
function compileRoutes(routes, config?): CompiledRoute[];

Defined in: redirects.ts:90

Compiles the url-addressable routes of a declaration set: each state's url appended to its ancestors' (dotted names nest), params merged rootward. Url-less states contribute nothing and match nothing, as in ui-router.

Parameters ​

ParameterType
routesRouteDeclaration[]
configUrlMatcherCompilerConfig

Returns ​

CompiledRoute[]