Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ActivatedRoute

Class representing a resolved route that a request is mounted to.

Hierarchy

  • ActivatedRoute

Index

Constructors

constructor

Properties

Readonly handler

The resolved function that should handle the request for this route.

Readonly params

params: {}

The parsed params from the route definition.

example

If the route definition is like /something/something/:paramName1/:paramName2/etc and the request came in on /something/something/foo/bar/etc, then the params would be:

{
    paramName1: 'foo',
    paramName2: 'bar',
}

Type declaration

  • [key: string]: string

Readonly path

path: string

Readonly postflight

postflight: ResolvedRouteHandler[]

Post-middleware that should be applied to the request on this route.

Readonly preflight

Pre-middleware that should be applied to the request on this route.

Readonly route

route: Route
Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.