import { Component , Input } from '@angular/core' ; import { Subject } from 'rxjs/Subject' ; import { RepoComponent } from '../repo' ; import { TruncatePipe } from '../../../pipes/truncate' ; @ Component ( { selector : 'activity-list' , styles : [ require ( './activity-list.style.scss' ) ] , template : require ( './activity-list.template.html' ) } ) export class ActivityListComponent { @ Input ( ) eventRepo ; public activities : any ; constructor ( ) { } ngAfterViewChecked ( ) { setTimeout ( _ => this . activities = this . eventRepo . events ) ; } }