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

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.