Skip to content

Commit

Permalink
docs: improve clarity on using refs (#3051)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeniOlabode authored and cs-vuejs-org committed Oct 29, 2024
1 parent c0b5bec commit 6ea3acb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/guide/essentials/template-refs.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ onMounted(() => console.log(itemRefs.value))

Ve verzích před 3.5, kde `useTemplateRef()` ještě není dostupné, musíme deklarovat ref s názvem, který odpovídá hodnotě atributu `ref` v šabloně. Ref by měl obsahovat hodnotu typu pole:

In versions before 3.5 where `useTemplateRef()` was not introduced, we need to declare a ref with a name that matches the template ref attribute's value. The ref should also contain an array value:

```vue
<script setup>
import { ref, onMounted } from 'vue'
Expand Down

0 comments on commit 6ea3acb

Please sign in to comment.