import { LiveAnnouncer } from '@angular/cdk/a11y' ; import { Component } from '@angular/core' ; import { FileUploader } from 'ng2-file-upload' ; @ Component ( { selector : 'app' , templateUrl : './app.component.html' } ) export class AppComponent { fileOver : boolean = false ; uploader : FileUploader = new FileUploader ( { } ) ; constructor ( announcer ) { this . uploader . onCompleteAll = ( ) => announcer . announce ( 'All files have been uploaded.' ) ; } }