Skip to content

API DocumentationDocs


API Documentation / useRoute

Function: useRoute()

useRoute<Name>(_name?): RouteLocationNormalizedLoaded<Name>

Returns the current route location. Equivalent to using $route inside templates.

Type Parameters

Name extends string | symbol = string | symbol

Parameters

_name?: Name

Returns

RouteLocationNormalizedLoaded<Name>

Released under the MIT License.