]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/core/core.module.ts
Client: better notifications for a beautiful world
[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 { SimpleNotificationsModule } from 'angular2-notifications';
7
8 import { AuthService } from './auth';
9 import { MenuComponent, MenuAdminComponent } from './menu';
10 import { throwIfAlreadyLoaded } from './module-import-guard';
11
12 @NgModule({
13 imports: [
14 CommonModule,
15 HttpModule,
16 RouterModule,
17
18 SimpleNotificationsModule
19 ],
20 declarations: [
21 MenuComponent,
22 MenuAdminComponent
23 ],
24 exports: [
25 SimpleNotificationsModule,
26
27 MenuComponent,
28 MenuAdminComponent
29 ],
30 providers: [ AuthService ]
31 })
32 export class CoreModule {
33 constructor( @Optional() @SkipSelf() parentModule: CoreModule) {
34 throwIfAlreadyLoaded(parentModule, 'CoreModule');
35 }
36 }