lesson 44: more v-for

This commit is contained in:
Andreas Zweili 2021-01-19 23:04:12 +01:00
parent 971bcddb03
commit 39e437990c
1 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,9 @@
<button @click="addGoal">Add Goal</button>
<p v-if="goals.length === 0">No goals have been added yet - please start adding some!</p>
<ul>
<li v-for="goal in goals">{{ goal }}</li>
<li v-for="(goal, index) in goals">{{ goal }}</li>
<!-- <li v-for="(value, key, index) in {name: 'Max', age: 32}">{{ value }} - {{ key }} - {{ index }}</li>
<li v-for="num in 10">{{ num }}</li> -->
</ul>
</section>
</body>