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

Integrating the commenting system into projects

So far, we've created our comments model and updated our in-memory web API database. We've created the comment and comments components along with a new view pipe called fromNow to format relative times in our comment view template. The only missing part is to integrate our comments component in our project. For this, we are making use of the second tab on our project component, which we've already prepared for for our commenting system. To keep our data flow tight, we're introducing a final component to fill the gap between our projects and the comments component.

Let's use Angular CLI to create the project comments container component:

ng generate component --spec false -ve none -cd onpush ...

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