Skip to content

Commit

Permalink
feat: Update usage of useTemplateRef() in composition API guide
Browse files Browse the repository at this point in the history
  • Loading branch information
NaokiHaba committed Sep 18, 2024
1 parent 7611560 commit ee113f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/typescript/composition-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ import { useTemplateRef } from 'vue'
import MyGenericModal from './MyGenericModal.vue'
import type { ComponentExposed } from 'vue-component-type-helpers'
const modal = useTemplateRef<ComponentExposed<typeof MyModal>>(null)
const modal = useTemplateRef<ComponentExposed<typeof MyGenericModal>>(null)
const openModal = () => {
modal.value?.open('newValue')
Expand Down

0 comments on commit ee113f3

Please sign in to comment.