O'Reilly logo

Mastering Angular Components by Gion Kunz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Project summary component

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required