import { NgModule } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { RouterModule , Routes } from '@angular/router' ; import { CoreModule } from '@alfresco/adf-core' ; import { ContentDirectiveModule } from '@alfresco/adf-content-services' ; import { DirectivesModule } from '../../directives/directives.module' ; import { AppInfoDrawerModule } from '../info-drawer/info.drawer.module' ; import { CoreExtensionsModule } from '../../extensions/core.extensions.module' ; import { AppToolbarModule } from '../toolbar/toolbar.module' ; import { AppViewerComponent } from './viewer.component' ; const routes = [ { path : '' , data : { title : 'APP.PREVIEW.TITLE' , navigateMultiple : true } , component : AppViewerComponent } ] ; @ NgModule ( { imports : [ CommonModule , RouterModule . forChild ( routes ) , CoreModule . forChild ( ) , ContentDirectiveModule , DirectivesModule , AppInfoDrawerModule , CoreExtensionsModule . forChild ( ) , AppToolbarModule ] , declarations : [ AppViewerComponent ] , exports : [ AppViewerComponent ] } ) export class AppViewerModule { }