1
0
Fork 0
peertube/client/src/app/core/core.module.ts

25 lines
676 B
TypeScript
Raw Normal View History

2016-11-20 16:18:15 +00:00
import { NgModule, Optional, SkipSelf } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpModule } from '@angular/http';
import { RouterModule } from '@angular/router';
2016-11-20 16:18:15 +00:00
import { AuthService } from './auth';
import { MenuComponent } from './menu';
2016-11-20 16:18:15 +00:00
import { throwIfAlreadyLoaded } from './module-import-guard';
@NgModule({
imports: [
CommonModule,
HttpModule,
RouterModule
2016-11-20 16:18:15 +00:00
],
declarations: [ MenuComponent ],
exports: [ MenuComponent ],
2016-11-20 16:18:15 +00:00
providers: [ AuthService ]
})
export class CoreModule {
constructor( @Optional() @SkipSelf() parentModule: CoreModule) {
throwIfAlreadyLoaded(parentModule, 'CoreModule');
}
}