Recap

Within this topic, we have successfully created a fully-fledged commenting system that can be placed in various areas of our application to enable commenting. Users can interact with in-place editors to edit the content in comments, which gives them a great user experience.

While writing the code for our commenting system, we learned about the following topics:

  • Creating a re-usable commenting system that can be used to add commenting functionality in every area of our application
  • Implementing a simple pipe using the @Pipe decorator and the Moment.js library to provide relative time formatting
  • Using the <ng-container> element to group elements for use within a template directive
  • Re-using the editor component as an in-place editor within ...

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.