[Vuejs]-Vue variable returning undefined via axios call/variable assignment

0đź‘Ť

The submenus property is a property of the individual items. So
response.data[0].submenus, response.data[1].submenus, etc. There isn’t
a submenus property directly on response.data.

So your inner loop should be something like v-for=”(subitem, index) of
item.submenus”.

-skirtle

I was lookin’ at the code too long, whoops!

Leave a comment