S
S
SexyHair2019-09-25 11:35:15
JavaScript
SexyHair, 2019-09-25 11:35:15

How to bind v-bind to data-id?

Tell me how to correctly bind data-id through v-bind. And then after re-rendering, the same data-id is transmitted
https://jsfiddle.net/oe0x51b9/6/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Alekseiev, 2019-09-25
@SexyHair

I’m not sure what worked wrong for you, but most likely you didn’t use in the loop v-bind:key, and your logic could also be slightly simplified due to computed variables https://jsfiddle.net/sn0w14rp/1/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question