The parsed location currently being routed.

interface ILocation {
    hash: string;
    path: string;
    request: string;
    search?: string;
    readonly [key: string]: undefined | ReadonlyPartialJSONValue;
}

Hierarchy

Indexable

  • readonly [key: string]: undefined | ReadonlyPartialJSONValue

Properties

hash: string

The location hash.

path: string

The path that matched a routing pattern.

request: string

The request being routed with the router base omitted.

This field includes the query string and hash, if they exist.

search?: string

The search element, including leading question mark ('?'), if any, of the path.