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.
Iπ nstructions
-
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.