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

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

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