Check out a free preview of the full Choosing a JavaScript Framework course:
The "Filtering" Lesson is part of the full, Choosing a JavaScript Framework course featured in this preview video. Here's what you'd learn in this lesson:

The next task is to clear the completed todo items. This logic would be easy to add into the View, however it’s best placed in the Model where the data is stored. Brian demonstrates how to code the View to trigger the filter function inside the Model.

Get Unlimited Access Now