2022-03-14 13:36:32 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<NuxtLink to="/about">
|
|
|
|
About page
|
|
|
|
</NuxtLink>
|
2022-07-07 17:28:23 +00:00
|
|
|
<NuxtLink v-slot="{ navigate }" to="/about" custom>
|
|
|
|
<button @click="navigate">
|
|
|
|
Custom about page
|
|
|
|
</button>
|
|
|
|
</NuxtLink>
|
2022-03-14 13:36:32 +00:00
|
|
|
<NuxtLink to="https://nuxtjs.org">
|
|
|
|
Nuxt website
|
|
|
|
</NuxtLink>
|
2022-07-07 17:28:23 +00:00
|
|
|
<NuxtLink v-slot="{ href, target }" to="https://nuxtjs.org" custom>
|
|
|
|
<a :href="href" :target="target">Go to {{ href }}</a>
|
|
|
|
</NuxtLink>
|
2022-03-14 13:36:32 +00:00
|
|
|
<NuxtLink to="https://twitter.com/nuxt_js" target="_blank">
|
|
|
|
Nuxt Twitter with a blank target
|
|
|
|
</NuxtLink>
|
|
|
|
<NuxtLink to="https://discord.nuxtjs.org" target="_blank" rel="noopener">
|
|
|
|
Nuxt Discord with a blank target and custom rel value
|
|
|
|
</NuxtLink>
|
|
|
|
<NuxtLink to="https://github.com/nuxt" no-rel>
|
|
|
|
Nuxt GitHub without rel attribute
|
|
|
|
</NuxtLink>
|
|
|
|
<MyNuxtLink to="https://nuxtjs.org">
|
|
|
|
Nuxt website with a custom link component with no default rel attribute
|
|
|
|
</MyNuxtLink>
|
|
|
|
<MyNuxtLink to="/">
|
|
|
|
Index page with a custom link component with a custom active class
|
|
|
|
</MyNuxtLink>
|
2022-03-16 10:10:32 +00:00
|
|
|
<NuxtLink>Link without href and to</NuxtLink>
|
2022-03-14 13:36:32 +00:00
|
|
|
</div>
|
|
|
|
</template>
|