import { CommonModule } from "@angular/common"; import { NgModule, ModuleWithProviders } from "@angular/core"; import { BHPNavbarComponent } from "./navbar.component"; import { BHPNavbarConfig } from "./navbar.config"; import { BHPAccordionModule } from "../accordion/accordion.module"; @NgModule({ imports: [CommonModule, BHPAccordionModule.forRoot()], declarations: [BHPNavbarComponent], exports: [BHPNavbarComponent], entryComponents: [BHPNavbarComponent] }) export class BHPNavbarModule { static forRoot(): ModuleWithProviders { return { ngModule: BHPNavbarModule, providers: [BHPNavbarConfig] }; } }