Web Programming

Todo SPA (Deleting)

The objective of this exercise is to extend the todo single-page application so that todos can be deleted.

Tasks

  1. Add a deleteTodo method to the service object which sends an AJAX request to delete a todo.
  2. Add a removeTodo method to the store object which deletes the todo in the REST service and removes it from the store.
  3. In the TodoList component, add a button to each rendered todo that deletes the corresponding todo when clicked.
  4. (Optional) Add another button to each rendered todo that completes the corresponding todo when clicked.