Home > @uniformdev/project-map > Route

Route class

Signature:

Constructors

Constructor

Modifiers

Description

(constructor)(route)

Constructs a new instance of the Route class

Properties

Property

Modifiers

Type

Description

dynamicSegmentCount

readonly

number

dynamicSegmentPrefix

static

string

route

readonly

string

Methods

Method

Modifiers

Description

expand(options)

Creates an expanded path value for this route given dynamic input values and allowed query string values

getDynamicRouteSegmentName(segment)

static

matches(path)

Tests if an incoming path matches this route

splitFragment(path)

static

Splits a path into the path portion and an optional #fragment (everything after the first #).

Variable expressions (${...}), so the fragment delimiter is the first # that falls outside of a variable expression.