import { ModuleWithProviders , NgModule } from '@angular/core' ; import { AboutComponent } from './about.component' ; import { CommonModule } from '@angular/common' ; import { CoreModule } from '@alfresco/adf-core' ; import { SharedModule , PageLayoutModule } from '@alfresco/aca-shared' ; import { ExtensionService , provideExtensionConfig } from '@alfresco/adf-extensions' ; import { DEV_MODE_TOKEN } from './dev-mode.tokens' ; @ NgModule ( { imports : [ CommonModule , CoreModule . forChild ( ) , SharedModule , PageLayoutModule ] , declarations : [ AboutComponent ] , providers : [ provideExtensionConfig ( [ 'about.plugin.json' ] ) ] } ) export class AcaAboutModule { constructor ( extensions ) { extensions . setComponents ( { 'app.about.component' : AboutComponent } ) ; } public static forRoot ( devMode ) { return { ngModule : AcaAboutModule , providers : [ { provide : DEV_MODE_TOKEN , useValue : devMode } ] } ; } }