Updating
In this section we're going to add the ability to check off completed Todos.
First, we'll add a hook to toggle a Todo, calling the Aft API's update
method.
app.js
And then update our Todos template to pass the hook to the todo component, and the Todo component to call it.
app.js
Try it out! Todos should stick around when checked, but not get reloaded on a page refresh.
In our last step, we'll take a look at access controls so we make sure we're only letting users see their own todos.