SitePoint
  • Premium
  • Library
  • Community
  • Jobs
  • Blog
LoginStart Free Trial
Building a Task Card App with Angular 2
Task Card App Introduction
How to Clone the Skeleton Project
Creating the Card Component
Creating the Card's HTML Markup (External Template)
Styling the Card Component
Adding the Task Status Icon (Third Party Library)
Creating the Task Model Class
Creating the Properties for the Card Component (Input Properties)
Using the Task Property Data (Property Binding)
Creating the Task Data Source
Using the Data Source to Generate Tasks (ngFor)
Creating the Add Task Form
Styling the Add Task Form
Adding the Angular Form Syntax (Template Driven Form)
Creating the Add Task Method (TypeScript Methods)
Adding New Tasks to the Data Source (Event Binding)
Protecting the Data Source from Empty Tasks
Clearing the Input Field After Adding a Task
Marking Tasks as Complete/Not Complete
Styling the Completed Cards (Class Binding)
Setting the Task Status Label to Reflect the Status (ngIf)
NgIf Directive vs the Hidden Property
Final Tweaks
Exercise Challenge