mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
docs: add vue
lang to sample code (#28247)
This commit is contained in:
parent
afc6e2b2e9
commit
dd50c3f41d
@ -51,7 +51,7 @@ Sets the message with `politeness = "assertive"`
|
|||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
```ts
|
```vue [pages/index.vue]
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const { message, politeness, set, polite, assertive } = useRouteAnnouncer({
|
const { message, politeness, set, polite, assertive } = useRouteAnnouncer({
|
||||||
politeness: 'assertive'
|
politeness: 'assertive'
|
||||||
|
Loading…
Reference in New Issue
Block a user