#68 decouple viewer

This commit is contained in:
Eugenio Romano
2016-06-08 12:43:17 +01:00
parent b9c009efef
commit fd27fd0844
8 changed files with 122 additions and 37 deletions

View File

@@ -18,13 +18,14 @@
import { Component, Input, Output, HostListener } from 'angular2/core';
import { EventEmitter } from 'angular2/src/facade/async';
import { PdfViewerComponent } from './pdfViewer.component';
import { NotSupportedFormat } from './notSupportedFormat.component';
declare let __moduleName: string;
@Component({
moduleId: __moduleName,
selector: 'alfresco-viewer',
directives: [PdfViewerComponent],
directives: [PdfViewerComponent, NotSupportedFormat],
templateUrl: './viewer.component.html',
styleUrls: ['./viewer.component.css']
})
@@ -168,11 +169,4 @@ export class ViewerComponent {
}
}
}
/**
* Download file
*/
private download(){
window.open(this.urlFile);
}
}