API Documentation • Docs
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