My JSON array of objects has the following structure:
https://i.sstatic.net/1IUVE.png
When generating a <ul>
, I need to fetch an ID from an API for each <li>
:
<ul>
<li v-for="genre in movie.genre_ids">
{{ genre }} // 19
</li>
</ul>
However, instead of displaying the number, I want to show the name of the genre associated with that ID.
How can I achieve this in my code?