Skip to content

Commit

Permalink
docs: use toUTCString in useAsyncData example (nuxt#5798)
Browse files Browse the repository at this point in the history
  • Loading branch information
valcosmos authored Jul 11, 2022
1 parent ac4e09b commit 57130b4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/content/3.api/2.components/4.nuxt-link.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Defaults can be overwritten, see [overwriting defaults](#overwriting-defaults) i

You can overwrite `<NuxtLink>` defaults by creating your own link component using `defineNuxtLink`.

```js [components/MyNuxtLink.js]
```js [components/MyNuxtLink.ts]
export default defineNuxtLink({
componentName: 'MyNuxtLink',
/* see signature below for more */
Expand All @@ -100,7 +100,7 @@ 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/framework/tree/main/examples/routing/nuxt-link?terminal=dev&file=/components/MyNuxtLink.js" blank}
:button-link[Open on StackBlitz]{href="https://stackblitz.com/github/nuxt/framework/tree/main/examples/routing/nuxt-link?terminal=dev&file=/components/MyNuxtLink.ts" blank}

### `defineNuxtLink` signature

Expand Down
2 changes: 1 addition & 1 deletion docs/content/4.examples/4.routing/nuxt-link.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ template: Example
This example shows different ways to use `<NuxtLink>`.

::alert{type=info icon=💡}
`components/myNuxtLink.js` defines a custom `<NuxtLink>`.
`components/myNuxtLink.ts` defines a custom `<NuxtLink>`.
::

::ReadMore{link="/api/components/nuxt-link"}
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default req => `Hello world (${req.url.substr(1)}) (Generated at ${new Date().toGMTString()})`
export default req => `Hello world (${req.url.substr(1)}) (Generated at ${new Date().toUTCString()})`

0 comments on commit 57130b4

Please sign in to comment.