Dynamic Page Transition
Trigger a page transition dynamically with useRouter
.
const router = useRouter()
const onClick = () => {
router.push({ path: '/new/path' })
}
This is an alternative to using <NuxtLink>
.
Trigger a page transition dynamically with useRouter
.
const router = useRouter()
const onClick = () => {
router.push({ path: '/new/path' })
}
This is an alternative to using <NuxtLink>
.