Skip to content

Instantly share code, notes, and snippets.

@descovi
Created March 6, 2018 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save descovi/956552ed9b5f3a75daf6f31472e88a9f to your computer and use it in GitHub Desktop.
Save descovi/956552ed9b5f3a75daf6f31472e88a9f to your computer and use it in GitHub Desktop.
Utilizzo di vue con tag <select> + binding di un valore strutturato ({name: 'Ciccio', id: 1})
<select type="text"
class="form-control"
v-model="momento.project"
name="project_id">
<option v-for="project in projects"
v-bind:value="{name: project.name, id: project.id}">
{{ project.name }}
</option>
</select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment