lesson 43: v-for
This commit is contained in:
parent
8bba59fa81
commit
971bcddb03
|
@ -21,7 +21,7 @@
|
|||
<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>Goal</li>
|
||||
<li v-for="goal in goals">{{ goal }}</li>
|
||||
</ul>
|
||||
</section>
|
||||
</body>
|
||||
|
|
Reference in New Issue
Block a user