R
R
rays_ofgoodness2022-04-14 18:03:40
HTML
rays_ofgoodness, 2022-04-14 18:03:40

How do I get the input value and pass it to a specific block in Vue?

The problem is that I have a Vue component with a modal window.
I need to get its value from the html document, namely input, and pass it to another html tag in the vue component.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alekssamos, 2022-04-14
@alekssamos

Ah, well, that's how it is,

<input v-model="myval" placeholder="напиши значение">
<p>Значение: {{ myval }}</p>

And if there are different pages, then storage is already needed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question