]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/core/core.module.ts
27e6ee1fb765b2d73aa5e392db9f7001a79bcfc9
[github/Chocobozzz/PeerTube.git] / client / src / app / core / core.module.ts
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
6 import { AuthService } from './auth';
7 import { MenuComponent } from './menu';
8 import { throwIfAlreadyLoaded } from './module-import-guard';
9
10 @NgModule({
11 imports: [
12 CommonModule,
13 HttpModule,
14 RouterModule
15 ],
16 declarations: [ MenuComponent ],
17 exports: [ MenuComponent ],
18 providers: [ AuthService ]
19 })
20 export class CoreModule {
21 constructor( @Optional() @SkipSelf() parentModule: CoreModule) {
22 throwIfAlreadyLoaded(parentModule, 'CoreModule');
23 }
24 }