Skip to content
Advertisement

Tag: v-model

Link v-model to a object’s property in Vue.js 2

I use Vue.js 2 and I have this array, obtained from this API call (https://developers.themoviedb.org/3/genres/get-movie-list this one) that I’ve used to make a select in HTML: What I want is to link the v-model, which is declared in Js as an empty string, to the property id of this array. I can’t extract the property and use an array with

Advertisement