Lesson 17 — Mini project: todo
A small todo app
Put the pieces together: v-model holds the text being typed, a ref holds the array of items, v-for shows them, and an add function puts the text into the array and clears the box. In Vue you can push into a reactive array — Vue notices the change.
function addTag() {
tags.value.push(newTag.value)
newTag.value = ""
}
Why it matters: this add-to-list flow is the core of comments, carts and playlists.
Finish add(). Typing Milk → Add, then Eggs → Add should list both items and leave the box empty.
A quick 3-question quiz on this lesson — instant feedback.
Ready for more? Optional paid resources that pick up where this lesson leaves off.
Some links on this page are affiliate links: we may earn a commission at no extra cost to you. As an Amazon Associate I earn from qualifying purchases.
Project-based Vue.js Foundations courses if you want a structured paid path after the free lessons. Wait for a sale — prices drop often.
Browse on Udemy →Search Amazon for Vue.js Foundations books — check the publication year so the examples match current versions.
Search Amazon →