import { ComponentFactoryResolver , NgModule } from '@angular/core' ; import { RouterModule } from '@angular/router' ; import { PageHeaderModule , 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 { ComponentsPageHeaderComponent } from './page-header/page-header.component' ; const SECTIONS = [ ComponentsPageHeaderComponent ] ; const ROUTES = [ { path : '**' , component : DocumentationCategoryComponent , data : { category : ResolverService . resolveCategoryData ( DocumentationPage . Components , 'Page Header' ) } } ] ; @ NgModule ( { imports : [ TabsetModule , PageHeaderModule , DocumentationComponentsModule , RouterModule . forChild ( ROUTES ) ] , exports : SECTIONS , declarations : SECTIONS , } ) export class ComponentsPageHeaderModule { constructor ( componentFactoryResolver , resolverService ) { resolverService . registerResolver ( componentFactoryResolver , SECTIONS ) ; } }