January 2018
Intermediate to advanced
348 pages
8h 17m
English
Let us explore the world of angular forms by creating one. We will create a page that lists the tasks in a table and allows for adding new ones. While we can do all of this in a single component, it's best to strive for the separation of concern. Thus, we split the logic between two components, one for listing the tasks and another for adding tasks by means of a form:

We use a template-driven approach here, so we rely on FormsModule, which needs to be imported. Here's how we can build our project:
ng new forms-democd forms-demonpm install bootstrap@3 --saveng serve
We added a ...
Read now
Unlock full access