2016-11-20 10:18:15 -06:00
|
|
|
import { NgModule, Optional, SkipSelf } from '@angular/core';
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
import { HttpModule } from '@angular/http';
|
2016-11-29 14:41:11 -06:00
|
|
|
import { RouterModule } from '@angular/router';
|
2016-11-20 10:18:15 -06:00
|
|
|
|
2017-01-27 09:14:11 -06:00
|
|
|
import { SimpleNotificationsModule } from 'angular2-notifications';
|
|
|
|
|
2016-11-20 10:18:15 -06:00
|
|
|
import { AuthService } from './auth';
|
2017-01-23 15:32:43 -06:00
|
|
|
import { MenuComponent, MenuAdminComponent } from './menu';
|
2016-11-20 10:18:15 -06:00
|
|
|
import { throwIfAlreadyLoaded } from './module-import-guard';
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
CommonModule,
|
2016-11-29 14:41:11 -06:00
|
|
|
HttpModule,
|
2017-01-27 09:14:11 -06:00
|
|
|
RouterModule,
|
|
|
|
|
|
|
|
SimpleNotificationsModule
|
2016-11-20 10:18:15 -06:00
|
|
|
],
|
2017-01-23 15:32:43 -06:00
|
|
|
declarations: [
|
|
|
|
MenuComponent,
|
|
|
|
MenuAdminComponent
|
|
|
|
],
|
|
|
|
exports: [
|
2017-01-27 09:14:11 -06:00
|
|
|
SimpleNotificationsModule,
|
|
|
|
|
2017-01-23 15:32:43 -06:00
|
|
|
MenuComponent,
|
|
|
|
MenuAdminComponent
|
|
|
|
],
|
2016-11-20 10:18:15 -06:00
|
|
|
providers: [ AuthService ]
|
|
|
|
})
|
|
|
|
export class CoreModule {
|
|
|
|
constructor( @Optional() @SkipSelf() parentModule: CoreModule) {
|
|
|
|
throwIfAlreadyLoaded(parentModule, 'CoreModule');
|
|
|
|
}
|
|
|
|
}
|