When using a v-for loop, I encounter an error:
<div v-for="index in 6" :key="index">
<div class="card h-100" style="margin-top: 200px;">
<a href="#">
<img
class="card-img-top"
src="https://i.picsum.photos/id/345/700/400.jpg?hmac=oQMF95pIPaAEnln8qWEjerYF_2lcuFsfl_KnwjHnpXc"
alt
/>
</a>
<div class="card-body">
<h4 class="card-title">
<a href="#"><p>{{ this.itemData[index].name }}</p></a>
</h4>
<p
class="card-text"
>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet numquam aspernatur!</p>
</div>
<div class="card-footer">
<small class="text-muted">★ ★ ★ ★ ☆</small>
</div>
</div>
</div>
</div>
</div>
Despite being able to display the same line of code outside of the loop, I get a TypeError when trying to access this.itemData[0].price which is a property of the itemData[0] object. Your assistance on resolving this issue would be greatly appreciated!