Home Hacker News Hacker News Clone in AngularJS – Post 5, Part C: Adding Nested Comments to StoryComment Component

Hacker News Clone in AngularJS – Post 5, Part C: Adding Nested Comments to StoryComment Component

8
0

Building a Hacker News Clone in AngularJS – Part 5

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.

Building a Hacker News Clone in AngularJS – Part 5

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.

source

LEAVE YOUR COMMENT

Your email address will not be published. Required fields are marked *

WordPress Anti Spam by WP-SpamShield

Close

Powered by moviekillers.com