BeginnerCoder

Lesson 25 — Ultimate: todo app

Boss level: the full todo app

The finished app adds items with a button or the Enter key (@keyup.enter is an event with a key modifier), toggles an item when clicked, crosses out finished items with a :style binding, and keeps a live "left" count with computed. Every piece is one you have already used.

<input v-model="q" @keyup.enter="search" />

Why it matters: this is a complete feature, start to finish — the same building blocks scale to real products.

Want it another way?
Task

Write add() and the remaining count. Add A, B, C (C with Enter), click A → "2 left" and A is crossed out.

Test your knowledge

A quick 3-question quiz on this lesson — instant feedback.

Enjoying this lesson? Share it.

Keep going with Vue.js Foundations

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.