mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
docs: update more links to examples repo
This commit is contained in:
parent
381e0f8349
commit
13a8923613
@ -38,7 +38,7 @@ counter.value = counter.value || Math.round(Math.random() * 1000)
|
||||
</script>
|
||||
```
|
||||
|
||||
:button-link[Open on StackBlitz]{href="https://stackblitz.com/github/nuxt/nuxt/tree/main/examples/composables/use-cookie?terminal=dev&file=app.vue" blank}
|
||||
:button-link[Open on StackBlitz]{href="https://stackblitz.com/github/nuxt/examples/tree/main/advanced/use-cookie?terminal=dev&file=app.vue" blank}
|
||||
|
||||
## Options
|
||||
|
||||
|
@ -44,7 +44,7 @@ definePageMeta({
|
||||
</script>
|
||||
```
|
||||
|
||||
:button-link[Open on StackBlitz]{href="https://stackblitz.com/github/nuxt/nuxt/tree/main/examples/routing/pages?file=app.vue" blank}
|
||||
:button-link[Open on StackBlitz]{href="https://stackblitz.com/github/nuxt/examples/tree/main/routing/pages?file=app.vue" blank}
|
||||
|
||||
## Accessing a page's component ref
|
||||
|
||||
|
@ -24,8 +24,6 @@ In this example, we use `<NuxtLink>` component to link to a website.
|
||||
</template>
|
||||
```
|
||||
|
||||
:button-link[Open on StackBlitz]{href="https://stackblitz.com/github/nuxt/nuxt/tree/main/examples/routing/nuxt-link?terminal=dev&file=/pages/index.vue" blank}
|
||||
|
||||
### Internal Routing
|
||||
|
||||
In this example, we use `<NuxtLink>` component to link to another page of the application.
|
||||
@ -39,8 +37,6 @@ In this example, we use `<NuxtLink>` component to link to another page of the ap
|
||||
</template>
|
||||
```
|
||||
|
||||
:button-link[Open on StackBlitz]{href="https://stackblitz.com/github/nuxt/nuxt/tree/main/examples/routing/nuxt-link?terminal=dev&file=/pages/index.vue" blank}
|
||||
|
||||
### `target` and `rel` Attributes
|
||||
|
||||
In this example, we use `<NuxtLink>` with `target`, `rel`, and `noRel` props.
|
||||
@ -69,8 +65,6 @@ In this example, we use `<NuxtLink>` with `target`, `rel`, and `noRel` props.
|
||||
</template>
|
||||
```
|
||||
|
||||
:button-link[Open on StackBlitz]{href="https://stackblitz.com/github/nuxt/nuxt/tree/main/examples/routing/nuxt-link?terminal=dev&file=/pages/index.vue" blank}
|
||||
|
||||
## Props
|
||||
|
||||
- **to**: Any URL or a [route location object](https://router.vuejs.org/api/interfaces/RouteLocation.html) from Vue Router
|
||||
@ -104,8 +98,6 @@ export default defineNuxtLink({
|
||||
|
||||
You can then use `<MyNuxtLink />` component as usual with your new defaults.
|
||||
|
||||
:button-link[Open on StackBlitz]{href="https://stackblitz.com/github/nuxt/nuxt/tree/main/examples/routing/nuxt-link?terminal=dev&file=/components/MyNuxtLink.ts" blank}
|
||||
|
||||
### `defineNuxtLink` Signature
|
||||
|
||||
```ts
|
||||
|
Loading…
Reference in New Issue
Block a user