V
V
Vladislav Nagorny2017-03-03 21:46:30
JavaScript
Vladislav Nagorny, 2017-03-03 21:46:30

How to get data from vue list?

hello there
is a list

lines = {
               { text:'test2',image:''},
        { text:'test1',image:''}
}

<li
        class="test"
         v-for="item in lines"
         @mouseover="change"
         >
</li>

And there is a hover function.
When I hover, I get MouseEvents, but how else to get the data?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Bogachev, 2017-03-03
@esvils

Probably you need something like this (I hope I understood the question).
PS: In the future - apply the sandbox right away to make it easier to understand what is happening ( there is a universal template for Vue+Vuex+Lodash)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question