V
V
valkyr2018-06-28 13:56:18
JavaScript
valkyr, 2018-06-28 13:56:18

How to accurately identify the dynamic element that was clicked?

There is a mini-blog (Vue.js + bootstrap) with the ability to add posts, by clicking on the "Read More" button, a modal window should pop up with information from the specific post that was clicked. I don’t understand how to transfer information from a specific post to a modal window?
This is my first time dealing with Vue, so there may initially be incorrect logic there.
Link to example

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2018-06-28
@valkyr

Well, why the hell do you take a zero post when executing a function?
Experience with Vue has nothing to do with it at all, the logic must be included.
When clicking, you need to pass the clicked post to the function or its identifier or something else.
Even so
ReadPost(post)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question