1 import { NgModule, Optional, SkipSelf } from '@angular/core';
2 import { CommonModule } from '@angular/common';
3 import { HttpModule } from '@angular/http';
4 import { RouterModule } from '@angular/router';
6 import { AuthService } from './auth';
7 import { MenuComponent } from './menu';
8 import { throwIfAlreadyLoaded } from './module-import-guard';
16 declarations: [ MenuComponent ],
17 exports: [ MenuComponent ],
18 providers: [ AuthService ]
20 export class CoreModule {
21 constructor( @Optional() @SkipSelf() parentModule: CoreModule) {
22 throwIfAlreadyLoaded(parentModule, 'CoreModule');