Nuxt/test/fixtures/basic/components/ComponentWithRef.vue
Daniel Roe c1ddb359e3
chore: update to use @nuxt/eslint-config (#24209)
Co-authored-by: Damian Głowala <damian.glowala.rebkow@gmail.com>
2023-11-09 18:01:13 +01:00

17 lines
269 B
Vue

<script setup lang="ts">
const list = ['a', 'b', 'c']
const templateRef = ref<HTMLElement[] | null>(null)
</script>
<template>
<div>
<div
v-for="item in list"
ref="templateRef"
:key="item"
>
{{ item }}
</div>
</div>
</template>