We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
useTemplateRef
1 parent 6c4fa64 commit 08be1cbCopy full SHA for 08be1cb
1 file changed
app/components/CodeViewer.vue
@@ -9,7 +9,7 @@ const emit = defineEmits<{
9
lineClick: [lineNum: number, event: MouseEvent]
10
}>()
11
12
-const codeRef = ref<HTMLElement>()
+const codeRef = useTemplateRef('codeRef')
13
14
// Generate line numbers array
15
const lineNumbers = computed(() => {
0 commit comments