[Vuejs]-Typscript: How do I Call Nested Array on Vue Data?

0👍

One observation : As subCategory & subCategoryImage in interface ISubcategories is defined as an array. You can not access it’s object directly with dot(.) notation. You can access elements via index or by iteration.

For ex :

<div v-for="(subCat, index) in categoryData.subCategory" :key="index">
    <div v-for"(imageUrl, i) in subCat.subCategoryImage" :key="i">
        <input v-model="imageUrl.podcastImageURL"/>
    </div>
</div>

Leave a comment