Skip to content

vue-router / useRoute

useRoute()

ts
function useRoute<Name>(_name?): RouteLocationNormalizedLoadedGeneric;

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

Type Parameters

Name

Name extends string | symbol = string | symbol

Parameters

_name?

Name

Returns

RouteLocationNormalizedLoadedGeneric

Released under the MIT License.