vue-router / RouteRecordNormalized
RouteRecordNormalized
Normalized version of a route record.
Extended by
Properties
aliasOf
ts
aliasOf: RouteRecordNormalized | undefined;Defines if this record is the alias of another one. This property is undefined if the record is the original one.
beforeEnter
ts
beforeEnter:
| NavigationGuardWithThis<undefined>
| NavigationGuardWithThis<undefined>[]
| undefined;Registered beforeEnter guards
children
ts
children: RouteRecordRaw[];Nested route records.
components
ts
components: Record<string, RawRouteComponent> | null | undefined;Components to display when the URL matches this route. Allow using named views.
enterCallbacks
ts
enterCallbacks: Record<string, NavigationGuardNextCallback[]>;Internal
Registered beforeRouteEnter callbacks passed to next or returned in guards
instances
ts
instances: Record<string, ComponentPublicInstance | undefined | null>;Mounted route component instances Having the instances on the record mean beforeRouteUpdate and beforeRouteLeave guards can only be invoked with the latest mounted app instance if there are multiple application instances rendering the same view, basically duplicating the content on the page, which shouldn't happen in practice. It will work if multiple apps are rendering different named views.
leaveGuards
ts
leaveGuards: Set<NavigationGuard>;Internal
Registered leave guards
meta
ts
meta: RouteMeta;Arbitrary data attached to the record.
mods
ts
mods: Record<string, unknown>;Internal
Contains the original modules for lazy loaded components.
name
ts
name: RouteRecordNameGeneric;Name for the route record. Must be unique.
path
ts
path: string;Path of the record. Should start with / unless the record is the child of another record.
props
ts
props: Record<string, _RouteRecordProps>;Allow passing down params as props to the component rendered by router-view. Should be an object with the same keys as components or a boolean to be applied to every component.
redirect
ts
redirect:
| RouteRecordRedirectOption
| undefined;Where to redirect if the route is directly matched. The redirection happens before any navigation guard and triggers a new navigation with the new target location.
updateGuards
ts
updateGuards: Set<NavigationGuard>;Internal
Registered update guards
