lesson 44: more v-for
This commit is contained in:
parent
971bcddb03
commit
39e437990c
|
@ -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>
|
||||
|
|
Reference in New Issue