A
A
Andrej Sharapov2019-06-24 10:51:28
Vue.js
Andrej Sharapov, 2019-06-24 10:51:28

How to correctly insert nested data into a block?

I'm trying to make a news block on vue.js, it seems to work, but I can't figure out how to insert a nested array (in this case, tags).

Tell me how to set them up and / or where to look about attachments of attachments in the docks?
Maybe it's better to make a new component with an array and output through it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-06-24
@Madeas

<a v-for="{ tag } in item.tags" href="#" :title="tag">{{ tag }}</a>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question