vue-router / _RouteLocationBase
_RouteLocationBase
Internal
Base properties for a normalized route location.
Extends
Pick
<MatcherLocation
,"name"
|"path"
|"params"
|"meta"
>
Extended by
Properties
fullPath
ts
fullPath: string;
The whole location including the search
and hash
. This string is percentage encoded.
hash
ts
hash: string;
Hash of the current location. If present, starts with a #
.
meta
ts
meta: RouteMeta;
Merged meta
properties from all the matched route records.
Inherited from
ts
Pick.meta
name
ts
name:
| null
| RouteRecordNameGeneric;
Name of the matched record
Inherited from
ts
Pick.name
params
ts
params: RouteParamsGeneric;
Object of decoded params extracted from the path
.
Inherited from
ts
Pick.params
path
ts
path: string;
Percentage encoded pathname section of the URL.
Inherited from
ts
Pick.path
query
ts
query: LocationQuery;
Object representation of the search
property of the current location.
redirectedFrom
ts
redirectedFrom: undefined | RouteLocationGeneric;
Contains the location we were initially trying to access before ending up on the current location.