Integrating the project component

Within this topic, we're going to integrate the changes we've applied so far to our application. Currently, our root component is rendering a task list container component directly, which we will need to change to render our projects.

We could go ahead and render the project UI component directly within our application root component, however, we've learned that we should never include a top-level component without a container component to separate our state concerns from our user interface.

Let's fix this and use the Angular CLI to create a project container component:

ng generate component --spec false -ve none -cd onpush container/project-container

After the component stub has been generated, open up the  ...

Get Mastering Angular Components now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.