1 import { NgModule, Optional, SkipSelf } from '@angular/core';
2 import { CommonModule } from '@angular/common';
3 import { HttpModule } from '@angular/http';
5 import { AuthService } from './auth';
6 import { throwIfAlreadyLoaded } from './module-import-guard';
15 providers: [ AuthService ]
17 export class CoreModule {
18 constructor( @Optional() @SkipSelf() parentModule: CoreModule) {
19 throwIfAlreadyLoaded(parentModule, 'CoreModule');