Menu
CoddyTech

Finding Community Tasks

Part of the Fundamentals section of Coddy's Vue journey. Lesson 54 of 55.

Keep all earlier features. Add input#search for case-insensitive title substring search, ignoring edge whitespace, and checkbox #only-open, initially unchecked. Show only records matching both active filters. Use a computed visible list without deleting source records. The summary always counts the entire source list, not just matches. Show No tasks to show in p#empty when the visible list is empty. Clearing search or unchecking the filter restores matching source tasks. A task completed under the open-only filter disappears from that view.

challenge icon

Challenge

Hard

Keep all earlier features. Add input#search for case-insensitive title substring search, ignoring edge whitespace, and checkbox #only-open, initially unchecked. Show only records matching both active filters. Use a computed visible list without deleting source records. The summary always counts the entire source list, not just matches. Show No tasks to show in p#empty when the visible list is empty. Clearing search or unchecking the filter restores matching source tasks. A task completed under the open-only filter disappears from that view.

Try it yourself

<!doctype html><html><head><meta charset="UTF-8"><title>Vue practice</title></head><body><div id="app"></div><script type="module" src="./main.js"></script></body></html>
quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Fundamentals