import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SERVICES } from './service';
import { DashboardStoreModule } from './dashboard-store.module';

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

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