diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-01-23 22:32:43 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-01-23 22:32:43 +0100 |
commit | b99290b1d5d736083513fb8f66e91f61bfe07e0b (patch) | |
tree | e0e7fa738ee661a267f5330db35bc46d295f945f /client/src/app/core/core.module.ts | |
parent | 11ac88de40215783835cf6e6259ff0f6cee258dd (diff) | |
download | PeerTube-b99290b1d5d736083513fb8f66e91f61bfe07e0b.tar.gz PeerTube-b99290b1d5d736083513fb8f66e91f61bfe07e0b.tar.zst PeerTube-b99290b1d5d736083513fb8f66e91f61bfe07e0b.zip |
Client: lazy load admin area
Diffstat (limited to 'client/src/app/core/core.module.ts')
-rw-r--r-- | client/src/app/core/core.module.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/client/src/app/core/core.module.ts b/client/src/app/core/core.module.ts index 27e6ee1fb..09a6f92f5 100644 --- a/client/src/app/core/core.module.ts +++ b/client/src/app/core/core.module.ts | |||
@@ -4,7 +4,7 @@ import { HttpModule } from '@angular/http'; | |||
4 | import { RouterModule } from '@angular/router'; | 4 | import { RouterModule } from '@angular/router'; |
5 | 5 | ||
6 | import { AuthService } from './auth'; | 6 | import { AuthService } from './auth'; |
7 | import { MenuComponent } from './menu'; | 7 | import { MenuComponent, MenuAdminComponent } from './menu'; |
8 | import { throwIfAlreadyLoaded } from './module-import-guard'; | 8 | import { throwIfAlreadyLoaded } from './module-import-guard'; |
9 | 9 | ||
10 | @NgModule({ | 10 | @NgModule({ |
@@ -13,8 +13,14 @@ import { throwIfAlreadyLoaded } from './module-import-guard'; | |||
13 | HttpModule, | 13 | HttpModule, |
14 | RouterModule | 14 | RouterModule |
15 | ], | 15 | ], |
16 | declarations: [ MenuComponent ], | 16 | declarations: [ |
17 | exports: [ MenuComponent ], | 17 | MenuComponent, |
18 | MenuAdminComponent | ||
19 | ], | ||
20 | exports: [ | ||
21 | MenuComponent, | ||
22 | MenuAdminComponent | ||
23 | ], | ||
18 | providers: [ AuthService ] | 24 | providers: [ AuthService ] |
19 | }) | 25 | }) |
20 | export class CoreModule { | 26 | export class CoreModule { |