Skip to content

Commit 91aa936

Browse files
authored
fix(Built-in Special Attributes): correct the methods used in src/api/built-in-special-attributes. (#1051)
1 parent f8f8edf commit 91aa936

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/built-in-special-attributes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858

5959
```vue
6060
<script setup>
61-
import { ref } from 'vue'
61+
import { useTemplateRef } from 'vue'
6262
63-
const p = ref()
63+
const pRef = useTemplateRef('p')
6464
</script>
6565
6666
<template>

0 commit comments

Comments
 (0)