mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#68 decouple viewer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user