@vueuse/router
Version:
Utilities for vue-router
27 lines (16 loc) • 872 B
Markdown
# @vueuse/router
[](https://www.npmjs.com/package/@vueuse/router)
> This is an add-on of [VueUse](https://github.com/vueuse/vueuse), providing utilities for vue-router.
## Install
```bash
npm i @vueuse/router vue-router@4
```
## Functions
<!--GENERATED LIST, DO NOT MODIFY MANUALLY-->
<!--FUNCTIONS_LIST_STARTS-->
- [`useRouteHash`](https://vueuse.org/router/useRouteHash/) — shorthand for a reactive `route.hash`
- [`useRouteParams`](https://vueuse.org/router/useRouteParams/) — shorthand for a reactive `route.params`
- [`useRouteQuery`](https://vueuse.org/router/useRouteQuery/) — shorthand for a reactive `route.query`
<!--FUNCTIONS_LIST_ENDS-->
## License
[MIT License](https://github.com/vueuse/vueuse/blob/master/LICENSE) © 2019-PRESENT [Anthony Fu](https://github.com/antfu)