Skip to content

Commit

Permalink
docs: update ref attribute example* docs: update ref attribute exampl…
Browse files Browse the repository at this point in the history
…eref -> useTemplateRef* fix: add import of useTemplateRef.vuejs/docs#2991 (comment) (#1423) (#1424)

Co-authored-by: Olabode-Odebunmi Oluwaseeni <[email protected]>
Co-authored-by: Thy <[email protected]>
  • Loading branch information
3 people authored Oct 15, 2024
1 parent d3b0ec4 commit e7e01c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/built-in-special-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ Désigne une [ref du template](/guide/essentials/template-refs).

```vue
<script setup>
import { ref } from 'vue'
import { useTemplateRef } from 'vue'
const p = ref()
const pRef = useTemplateRef('p')
</script>
<template>
Expand Down

0 comments on commit e7e01c1

Please sign in to comment.