Skip to content

ui-router-effect / snapshotRoute

Function: snapshotRoute() ​

ts
function snapshotRoute(router, transition?): RouteSnapshot;

Defined in: shared/route-snapshot/src/route-snapshot.ts:38

The snapshot of a router right now; StateService.includes minus the live reads.

Parameters ​

ParameterType
routerUIRouter
transition?| Transition | undefined

Returns ​

RouteSnapshot