Skip to Main Content
Mastering Angular Components - Second Edition
book

Mastering Angular Components - Second Edition

by Gion Kunz
July 2018
Intermediate to advanced content levelIntermediate to advanced
402 pages
9h 35m
English
Packt Publishing
Content preview from Mastering Angular Components - Second Edition

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Angular, 2nd Edition

Learning Angular, 2nd Edition

Brad Dayley, Brendan Dayley, Caleb Dayley
Essential Angular

Essential Angular

Victor Savkin, Jeff Cross
Pro Angular 6

Pro Angular 6

Adam Freeman

Publisher Resources

ISBN: 9781788293532Supplemental Content