Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 285 Bytes

index.md

File metadata and controls

18 lines (12 loc) · 285 Bytes
category
@Router

useRouteHash

Shorthand for a reactive route.hash.

Usage

import { useRouteHash } from '@vueuse/router'

const search = useRouteHash()

console.log(search.value) // route.hash
search.value = 'foobar' // router.replace({ hash: 'foobar' })