In this section, we'll create a project summary component that will provide some overview information for projects. Within the container component of our projects dashboard component tree, we'll make sure that we aggregate all of the necessary information to summarize projects. Our project summary UI component renders the data provided in the project summary objects, to create nice looking project overview cards.
Let's start building our component using the Angular CLI tool:
ng generate component --spec false -ve none -cd onpush projects-dashboard/project-summary
Let's open the component class, located in src/app/projects-dashboard/project-summary/project-summary.component.ts, and replace its content with the following ...