Put in order · Vue.js course · Module 5: Events & Forms
Select option syntax with v-for
Arrange the correct syntax for a select option with v-for:
Items to put in order
- <option
- {{ opt.name }}</option>
- :value="opt.id">
- v-for="opt in options"
You can check the correct answer by solving this task in the CodeWorlds game.