Home Hacker News Hacker News Clone in AngularJS – Post 5, Part B: Adding vm.commentKids to Comment Component

Hacker News Clone in AngularJS – Post 5, Part B: Adding vm.commentKids to Comment Component

2
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 … get the array of comment IDs belonging to a given story from the Hacker News API, store it in the controller and pass it to the view.

This video covers the following topics:

* adding the vm.commentKids property to our StoryComment Component’s controller and setting it equal to the value of the “kids” property in the response data from the Hacker news API.
* adding {{ vm.commentKids }} to the story-comment.html component template
* verifying that the data is being passed to the view

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