1
How do I bring Bullets items?
Now I can access the sliders
using v-for="item in slider" :key="item.id"
.
On the part of <ul class="c-list-slider__bullets">
had to bring the Bullets items, as I do to be able to access/bring the items from it?
"sliders": [{
"$id": "4",
"id": "f0914efc-143a-4ca1-be06-0798e0cd7809",
"hat": "confiança em alta"
"bullets": [{
"$id": "5",
"id": "96b4ffb8-1f39-456c-bb83-31d48226fd92",
"title": "teste 1"
},
{
"$id": "6",
"id": "5b19addf-7e65-4c84-b5ea-db2330de64eb",
"title": "teste 2'"
}
]
}]
<article class="c-list-slider__item materia" v-for="item in slider" :key="item.id">
<div class="c-list-slider__content">
<h3><a :href="link" class="c-list-slider__:title" :title="title">{{item.title}}</a></h3>
<ul class="c-list-slider__bullets">
<li><a :href="link" :title="title">{{item.title}}</a></li>
</ul>
</div>
<figure>
<a :href="link" :title="title"><img src="" alt=""></a>
</figure>
</article>
So? You figured it out?
– Wallace Maxters
would not be
sliders
(plural) in thev-for
?– RFL
@RFL I imagined that she made one
v-for="slider in sliders"
.– Wallace Maxters
Isa, you’re wearing a
v-for
inside the other?– Wallace Maxters
post an example "functional" than already done, a simplified example that we can run, a MCVE helps us to help it: https://answall.com/help/mcve
– Guilherme Nascimento
I decided, thank you very much!!!
– Isa