socialnetworknews-web

A open-source Paper.li clone
git clone git://archive.git.mtrnord.blog/SocialNetworkNews/socialnetworknews-web.git
Log | Files | Refs | README | LICENSE

commit 2aa9184d6f1381f93d6e94dd549db73e672e3468
parent 5a40d06bf47f91e2a6463f15954aacdbf4e9a11a
Author: MTRNord <mtrnord1@gmail.com>
Date:   Mon, 26 Feb 2018 16:50:11 +0100

Fix uuid being undefined

Diffstat:
Msrc/app/tweet-list/tweet-list.component.ts | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/app/tweet-list/tweet-list.component.ts b/src/app/tweet-list/tweet-list.component.ts @@ -1,4 +1,4 @@ -import {Component, Input} from '@angular/core'; +import {Component, Input, OnInit} from '@angular/core'; import * as Raven from 'raven-js'; import {ApiService, TweetsEntity} from '../api.service'; @@ -8,7 +8,7 @@ import {ApiService, TweetsEntity} from '../api.service'; templateUrl: './tweet-list.component.html', styleUrls: ['./tweet-list.component.scss'] }) -export class TweetListComponent { +export class TweetListComponent implements OnInit { @Input() uuid; data: (TweetsEntity)[][]; @@ -20,6 +20,9 @@ export class TweetListComponent { uuid: this.uuid } }); + } + + ngOnInit() { this.getYesterday(); }