I'm trying to render an array in a child component but am getting a bit confused.
The props and the component are correctly declared in the parent component and I console.logged cryptoList7d (which is an array of objects) to be sure it was correctly stored and it is.
Parent component:
<td v-bind:key="index" v-for="(elt7d, index) in cryptoList7d">
<item7d :elt7d="elt7d"></item7d>
</td>
Child component:
<template>
<div>
<td>
<p>{{ elt7d.name }}</p>
</td>
</div>
</template>
<script>
export default {
name: "item7d",
props: ['cryptoList7d', 'elt7d']
}
</script>
<style scoped>
</style>
I'm not getting any error but nothing is rendering.
Thanks in advance for the help.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…