mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 21:58:19 +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>
|
</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
|
## Options
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ definePageMeta({
|
|||||||
</script>
|
</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
|
## Accessing a page's component ref
|
||||||
|
|
||||||
|
@ -24,8 +24,6 @@ In this example, we use `<NuxtLink>` component to link to a website.
|
|||||||
</template>
|
</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
|
### Internal Routing
|
||||||
|
|
||||||
In this example, we use `<NuxtLink>` component to link to another page of the application.
|
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>
|
</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
|
### `target` and `rel` Attributes
|
||||||
|
|
||||||
In this example, we use `<NuxtLink>` with `target`, `rel`, and `noRel` props.
|
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>
|
</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
|
## Props
|
||||||
|
|
||||||
- **to**: Any URL or a [route location object](https://router.vuejs.org/api/interfaces/RouteLocation.html) from Vue Router
|
- **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.
|
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
|
### `defineNuxtLink` Signature
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
|
Loading…
Reference in New Issue
Block a user