how to bind the form to a component with the ngModel directive
how to create a service and how to use it in a component
how to add routing to an Angular application
Letβs review the code
We create a HTML form structure in the TaskFormComponent class.
We create a TaskFormComponent class to handle the form submission.
We create a TaskService class to manage the tasks list.
We update the TaskListComponent class to display the tasks list.
Whatβs next
In the next chapter, you will learn how to delete a task from the list. You will learn how to create a delete button in the TaskListComponent class and how to create a function to remove a task from the list in the TaskService class.