import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SERVICES } from './service';

@NgModule({
  declarations: [],
  imports: [CommonModule],
  exports: []
})
export class GrafanaModule {
  public static forRoot(): ModuleWithProviders<GrafanaRootModule> {
    return {
      ngModule: GrafanaRootModule,
      providers: [SERVICES]
    };
  }
}

@NgModule({
  imports: [],
  exports: []
})
export class GrafanaRootModule {}
