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

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

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