Check out a free preview of the full Choosing a JavaScript Framework course:
The "Adding and Toggling Todo Items" 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:

As the users toggles each todo item, the view will fire an event which will call a toggle method inside the model. Similar to filtering, keeping the toggle logic inside the view is a good separation of concerns. Brian also adds the ability to add new todo items.

Get Unlimited Access Now