Answer the question
In order to leave comments, you need to log in
How to pass a list element to an array value and keep them in sync (solved)?
There is a list
<ul v-for="arrTest ">
<li id="el-1">1</li>
<li id="el-2">2</li>
<li id="el-3">3</li>
<li id="el-4">4</li>
<li id="el-5">5</li>
</ul>
var arrTest = [
{id:1,name:'name1',val:10},
{id:2,name:'name2',val:7},
{id:3,name:'name3',val:7},
{id:4,name:'name4',val:11},
{id:5,name:'name5',val:1}
];
<li id="el-2" v-bind:text-content.prop="arrTest[1].name">name1</li>
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