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
-
Add a
deleteTodo method to the service object which sends an AJAX request to delete a todo.
-
Add a
removeTodo method to the store object which deletes the todo in the REST service and removes it from the store.
-
In the
TodoList component, add a button to each rendered todo that deletes the corresponding todo when clicked.
-
(Optional) Add another button to each rendered todo that completes the corresponding todo when clicked.