Delete all tasks
Instructions
Section titled “Instructions”-
Update the
TaskServiceclass with a new function setting the tasks to an empty array:task-service.ts deleteAllTasks() {this.tasks.set([]);} -
Update the
TaskListclass with the new function:deleteAllTasks() {this.taskService.deleteAllTasks();}