Skip to content

useRouter

Returns the installed router instance. See 'Router' for more information.

ts
import { useRouter } from '@kitbag/router'

const router = useRouter()

TIP

Register your router to get the proper types when using this composable.