[Vuejs]-V-select component not loading into HTML

0👍

:options=”[‘Vue.js’,’React’]”

Above line can be a big problem, since you are passing the static data and not assigning any variable you don’t have to use :

: this actually a binding operator you should only use this when you are binding option to some variable

For eg:

data(){
return{
options:[['Vue.js','React']]
}

}

now inside your vue file, you can add

<v-select v-model="selected" :options=options></v-select>

If you dont want to declare variable then you can remove :

 <v-select v-model="selected" options="['Vue.js','React']"></v-select>

Always make sure whatever you are passing to the component is declared inside the data

If you want to use computed make sure you declare it upfront before using it

Leave a comment