import { CommonModule } from '@angular/common' ; import { ComponentFactoryResolver , NgModule } from '@angular/core' ; import { FormsModule } from '@angular/forms' ; import { RouterModule } from '@angular/router' ; import { AccordionModule , HierarchyBarModule , IconModule , OrganizationChartModule , RadioButtonModule , TabsetModule } from '@ux-aspects/ux-aspects' ; import { DocumentationComponentsModule } from '../../../../components/components.module' ; import { DocumentationCategoryComponent } from '../../../../components/documentation-category/documentation-category.component' ; import { DocumentationPage , ResolverService } from '../../../../services/resolver/resolver.service' ; import { ChartsOrganizationChartComponent } from './organization-chart/organization-chart.component' ; const SECTIONS = [ ChartsOrganizationChartComponent ] ; const ROUTES = [ { path : '**' , component : DocumentationCategoryComponent , data : { category : ResolverService . resolveCategoryData ( DocumentationPage . Charts , 'Organization Chart' ) } } ] ; @ NgModule ( { imports : [ AccordionModule , CommonModule , DocumentationComponentsModule , FormsModule , HierarchyBarModule , IconModule , OrganizationChartModule , RadioButtonModule , RouterModule . forChild ( ROUTES ) , TabsetModule , ] , exports : SECTIONS , declarations : SECTIONS , } ) export class ChartsOrganizationChartModule { constructor ( componentFactoryResolver , resolverService ) { resolverService . registerResolver ( componentFactoryResolver , SECTIONS ) ; } }