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.