From the course: MongoDB Cloud Essential Training

Unlock the full course today

Join today to access over 23,400 courses taught by industry experts.

Adding comments

Adding comments

- [Instructor] In this video, we're going to learn how to work with comments. Now comments are a very common feature when you're working with applications that interact with the database, especially social media style applications. Now, the whole idea is we're going to first of all be able to see a particular site and the detail, and then we're going to be able to add comments for that particular site. So the first thing we're going to do is to implement that site detail. So, for this let's go back to the code and here, which is going to go to the index HTML. And when we go to the index HTML, we are going to go down to the place where we create our fragments. So we going to look for that site item fragment. If you look at a site aspect fragments, there is an anchor tag here on line 192 for B, this anchor tag basically envelopes the image and the text. This is very important as we only want to be able to navigate when…

Contents