Hacker News Clone in AngularJS – Post 5, Part C: Adding Nested Comments to StoryComment Component
Hi Everyone! I’m Dakota Lee Martinez. In this video series I’ll be using the Hacker News API to build out a Hacker News Clone in AngularJS.
These videos are accompanied by a series of blog posts at becomingaprogrammer.com. You can find the written explanation of the process and code samples there.
In this video, we’re going to … display the comments within an unordered list and add a nested component to display threaded comments.
To do this, this video covers the following topics:
* adding an ng-repeat in the StoryComment template, to display the comment IDs in an unordered list
* creating a story-comment component within the ng-repeat and passing the commentId to the element as an attribute
* reloading http://localhost:8080/#/post?id=1 and explaining why we see what we do.