Answer the question
In order to leave comments, you need to log in
Vue remove items from array?
There is an array, for example, of 100 elements, they can be repeated.
[
{id: 1, name: Tester},
{id: 2, name: Tester 2},
{id: 1, name: Tester},
{id: 3, name: Tester 3},
{id: 1, name: Tester},
{id: 4, name: Tester 4},
{id: 5, name: Tester 5},
....
]
<ul >
<li v-for="(app, index) in userList"
:key="index">
<span :data-id="user.id"
:alt="user.name"
:data-pos="index">
{{ user.name }}
</span>
</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