Add delete function in the TaskService
- ✔️Handle task deletionLearn how to delete a task from the task list.
The deleteTask function
To delete a task from the list, let’s create a deleteTask function in the TaskService service. It’ll remove the task from the list based on its uuid.
🎓 Instructions
-
Update the
src/app/task.service.ts
file.
✔️ What you learned
In this chapter, you added a function to remove a task from the list based on its id in the TaskService.