Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

v-for only getting one first value vuejs

<option v-for="(location, index) in locations" v-bind:value="location.id" v-bind:selected="index === 0">
  {{ location.from }} - {{ location.to }}
</option>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vuejs
ADD COMMENT
Topic
Name
5+3 =