import { NgModule } from '@angular/core' ; import { FrontpageComponent } from './frontpage.component' ; import { SubpageComponent } from './subpage.component' ; import { SubpageSidebarComponent } from './subpage-sidebar.component' ; import { ProductsPageComponent } from './products-page.component' ; import { PageComponent } from './page.component' ; import { PageResolve } from './page.resolve' ; import { CommerceModule } from '../commerce/commerce.module' ; import { SpotsModule } from '../spots/spots.module' ; import { RouterModule } from '@angular/router' ; import { SharedModule } from '../shared/shared.module' ; export const PageComponents = [ FrontpageComponent , SubpageComponent , ProductsPageComponent , SubpageSidebarComponent ] ; export { PageComponent } from './page.component' ; @ NgModule ( { declarations : [ PageComponent , ... PageComponents ] , imports : [ SharedModule , CommerceModule , SpotsModule , RouterModule ] , providers : [ PageResolve , ] , entryComponents : [ PageComponents ] , exports : [ PageComponent ] } ) export class PagesModule { }