Questions tagged [v-model]

Use this tag for questions related to the v-model directive of Vue.js.

The v-model directive is used to create two-way data bindings on form input, textarea, and select elements. It automatically picks the correct way to update the element based on the input type. Although a bit magical, v-model is essentially syntax sugar for updating data on user input events. For more information: https://vuejs.org/v2/guide/forms.html#Modifiers

420 questions
0
votes
1 answer

VueJS how to use v-model with a specific element of an array?

I'm developing a website where you can create, view and like playlists of movies. In the "playlist page", which has a "/playlistid" route there is a checkbox that I use as a "like button". Basically I load an array from my server (let's call it…
totem
  • 1
  • 3
0
votes
0 answers

1 way binding fails after selecting option in vue.js

I'm trying to implement 1-way binding. What I want is that changing dropdown should affect the text in

and the text. Change tag should effect only text within

. But when I change the dropdown value, I lost the value within the

as well…

Knowledge Seeker
  • 526
  • 7
  • 25
0
votes
1 answer

Vue use v-model and :value at the same time

I'm trying to get the selected image value and sent it to the database. Right now I can send only the input value to the database but I need that value to be the selected image. Basically I need to use v-model and :value at the same time, right now…
0
votes
2 answers

input value that's binded with vue does not show up in the dom

I'm trying to bind a property of an item that belongs to an array in the data object of vue to the value attribute of an input tag, but it does not show up if I look at it in the DOM of a web browser.