Answer the question
In order to leave comments, you need to log in
How to get object key in v-for?
There is a data object:
data: {
key1: value1,
key2: value2,
...
}
<ul>
<li :some-data="key" v-for="item in data">{{item}}</li>
</ul>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question