import { NgModule, ModuleWithProviders } from '@angular/core'; import { CommonModule } from '@angular/common' import {BrowserModule} from '@angular/platform-browser' import { AuditbotLibComponent } from './auditbot-lib.component'; import { HTTP_INTERCEPTORS } from '@angular/common/http'; import { AuditBotInterceptor } from './auditbot-interceptor'; import { AuditbotLibService } from './auditbot-lib.service'; import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; @NgModule({ declarations: [AuditbotLibComponent], imports: [ BrowserModule, CommonModule, FontAwesomeModule, NgbModule ], exports: [AuditbotLibComponent], providers: [ { provide: HTTP_INTERCEPTORS, useClass: AuditBotInterceptor, multi: true }, AuditbotLibService ] }) export class AuditbotLibModule { static forRoot(): ModuleWithProviders { return { ngModule: AuditbotLibModule, providers: [ { provide: HTTP_INTERCEPTORS, useClass: AuditBotInterceptor, multi: true }, AuditbotLibService ] } } }