1
0
mirror of https://github.com/nuxt/nuxt.git synced 2024-12-12 15:27:13 +00:00
Nuxt/test/fixtures/basic/components/ComponentWithRef.vue
Daniel Roe c1ddb359e3
chore: update to use @nuxt/eslint-config ()
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>