mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
adb1c122a7
Co-authored-by: Daniel Roe <daniel@roe.dev>
13 lines
246 B
Vue
13 lines
246 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>
|