mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
minor code reorg for Viewer and Extensions (#554)
* self-registering extension module * move printing service to the preview chunk
This commit is contained in:
committed by
Cilibiu Bogdan
parent
9035a416ee
commit
4668112871
@@ -27,11 +27,12 @@ import { CoreModule } from '@alfresco/adf-core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
import { ContentDirectiveModule } from '@alfresco/adf-content-services';
|
||||
import { CoreExtensionsModule } from '../../extensions/core.extensions.module';
|
||||
import { DirectivesModule } from '../../directives/directives.module';
|
||||
import { AppInfoDrawerModule } from '../info-drawer/info.drawer.module';
|
||||
import { PreviewComponent } from './preview.component';
|
||||
import { ContentDirectiveModule } from '@alfresco/adf-content-services';
|
||||
import { ViewUtilService } from './view-util.service';
|
||||
|
||||
import * as pdfjsLib from 'pdfjs-dist';
|
||||
pdfjsLib.PDFJS.workerSrc = 'pdf.worker.js';
|
||||
@@ -57,6 +58,9 @@ const routes: Routes = [
|
||||
declarations: [
|
||||
PreviewComponent,
|
||||
],
|
||||
providers: [
|
||||
ViewUtilService
|
||||
],
|
||||
exports: [
|
||||
PreviewComponent
|
||||
]
|
||||
|
Reference in New Issue
Block a user