Lesson 16 — Filtered list
Live search
A search box is v-model plus a computed filter: the computed reads the query and returns only matching items, and the list re-renders as you type. Lower-casing both sides makes the match case-insensitive; includes checks whether one string contains another.
"Bella".toLowerCase().includes("be") // true
Why it matters: filtering contacts, products or settings as you type is a feature users expect everywhere.
Make shown keep only names that contain the query (ignoring case). Typing be should leave Ben and Bella.
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 →