mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#68 move example in demo folder
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<div class="mdl-layout__header-row">
|
||||
|
||||
<!-- File Title -->
|
||||
<span class="mdl-layout-title">{{nameFile}}</span>
|
||||
<span class="mdl-layout-title">{{urlFile}}</span>
|
||||
|
||||
<!-- pagination toolbar start -->
|
||||
<div id="viewer-toolbar-pagination">
|
||||
|
@@ -39,10 +39,9 @@ export class ViewerComponent {
|
||||
totalPages: number;
|
||||
|
||||
ngOnInit() {
|
||||
console.log('A.urlFile ' + this.urlFile);
|
||||
console.log('urlFile ' + this.urlFile);
|
||||
|
||||
this.urlFile = this.urlFile ? this.urlFile : 'localTestFile.pdf';
|
||||
this.nameFile = PDFJS.getFilenameFromUrl(this.loadFile);
|
||||
this.nameFile = PDFJS.getFilenameFromUrl(this.urlFile);
|
||||
|
||||
PDFJS.getDocument(this.urlFile).then((pdf) => {
|
||||
this.currentPdf = pdf;
|
||||
|
Reference in New Issue
Block a user