0
I have a simple variable and I want to pass it to my v-for. However, I get the error "Property or method "indicatorTitle" is not defined on the instance but referenced".
The way I’m trying:
<div class="row">
<div class="col-md" v-for="title in titles" v-bind:key="title.indicatorTitle">
{{ indicatorTitle }}
<div class="card" >
<div class="card-body">
<ul>
<li class="groupCategory">
</li>
</ul>
</div>
</div>
</div>
</div>
data: function () {
return {
titles: [
{ indicatorTitle: "Teste 3" },
{ indicatorTitle: "Teste 2" },
{ indicatorTitle: "Teste 1" }
]
}
```
you have to call it from the object:
{{ title.indicatorTitle }}
– Helder Lucas
Ish, you’re right, I completely forgot. Thank you so much
– ketts
@Helderlucas: There’s an answer? :)
– Sergio
I’ll gladly accept the answer when I make it, @Helderlucas
– ketts