OptionalaliasAliases for the record. Allows defining extra paths that will behave like a
copy of the record. Allows having paths shorthands like /users/:id and
/u/:id. All alias and path values must share the same params.
OptionalbeforeBefore Enter guard specific to this record. Note beforeEnter has no
effect if the record has a redirect property.
OptionalchildrenArray of nested routes.
OptionalcomponentComponents to display when the URL matches this route. Allow using named views.
OptionalendShould the RegExp match until the end by appending a $ to it.
OptionalmetaArbitrary data attached to the record.
OptionalnameName for the route record. Must be unique.
Path of the record. Should start with / unless the record is the child of
another record.
OptionalpropsAllow 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.
OptionalredirectWhere 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.
OptionalsensitiveMakes the RegExp case-sensitive.
OptionalstrictWhether to disallow a trailing slash or not.
Route Record defining multiple named components with the
componentsoption.