27. Adding Comment Threads to Pages

This chapter provides a practical example of implementing the full Node.js, MongoDB, and AngularJS stack; in it, you’ll learn how to allow users to add nested comments to one or more areas of a webpage. Adding comments is a common aspect for many websites and involves a few challenges.

The example in this chapter provides a single webpage that enables comments for the whole page as well as comments for individual photos that can be loaded on the page. The code is basic and easy to follow.

The code in this example does not include user, authentication, and session management to make it easier to follow; if you want a refresher on those topics, see Chapter 26, “Adding User Accounts to Your Website.” This example ...

Get Node.js, MongoDB, and AngularJS Web Development 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.