Skip to content

API DocumentationDocs


API Documentation / useRoute

Function: useRoute()

useRoute<Name>(_name?): RouteLocationNormalizedLoadedGeneric

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

Type Parameters

Name extends string | symbol = string | symbol

Parameters

_name?: Name

Returns

RouteLocationNormalizedLoadedGeneric

Released under the MIT License.