Files
Max Lynch f4905ee5b7 Fun stuff
2015-04-27 10:30:35 -05:00

14 lines
302 B
JavaScript

export class HackerNews {
constructor() {
this.fb = new Firebase('https://hacker-news.firebaseio.com/v0');
this.getPosts();
}
getPosts() {
console.log('GETTING POSTS');
this.fb.child('topstories').on('value', function(snapshot) {
console.log(snapshot.val());
});
}
}