import { Component } from '@angular/core' ; import { FileHolder } from 'angular2-image-upload' ; @ Component ( { selector : 'events' , templateUrl : './events.component.html' } ) export class EventsComponent { onUploadFinished ( file ) { console . log ( file ) ; } onRemoved ( file ) { console . log ( file ) ; } onUploadStateChanged ( state ) { console . log ( state ) ; } }