mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-05 20:07:16 +00:00
c1ddb359e3
Co-authored-by: Damian Głowala <damian.glowala.rebkow@gmail.com>
17 lines
269 B
Vue
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>
|