@vueuse/router
This is an add-on of VueUse, providing utilities for vue-router (Vue 3 Only).
Install
npm i @vueuse/router vue-router@4
Functions
useRouteHash
— shorthand for a reactiveroute.hash
useRouteParams
— shorthand for a reactiveroute.params
useRouteQuery
— shorthand for a reactiveroute.query
License
MIT License © 2019-PRESENT Anthony Fu