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'
5 import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
7 import { SimpleNotificationsModule } from 'angular2-notifications'
8 import { ModalModule } from 'ngx-bootstrap/modal'
10 import { AuthService, LoginGuard } from './auth'
11 import { ServerService } from './server'
12 import { ConfirmComponent, ConfirmService } from './confirm'
13 import { MenuComponent, MenuAdminComponent } from './menu'
14 import { throwIfAlreadyLoaded } from './module-import-guard'
21 BrowserAnimationsModule,
24 SimpleNotificationsModule.forRoot()
34 SimpleNotificationsModule,
48 export class CoreModule {
49 constructor ( @Optional() @SkipSelf() parentModule: CoreModule) {
50 throwIfAlreadyLoaded(parentModule, 'CoreModule')