]>
Commit | Line | Data |
---|---|---|
df98563e | 1 | import { NgModule } from '@angular/core' |
ae5a3dd6 | 2 | import { RouterModule, Routes } from '@angular/router' |
a685e25c C |
3 | |
4 | import { PreloadSelectedModulesList } from './core' | |
693b1aba C |
5 | |
6 | const routes: Routes = [ | |
b99290b1 C |
7 | { |
8 | path: 'admin', | |
63c4db6d | 9 | loadChildren: './+admin/admin.module#AdminModule' |
0626e7af C |
10 | }, |
11 | { | |
170726f5 C |
12 | path: 'accounts', |
13 | loadChildren: './+accounts/accounts.module#AccountsModule' | |
14 | }, | |
15 | { | |
16 | path: 'video-channels', | |
17 | loadChildren: './+video-channels/video-channels.module#VideoChannelsModule' | |
693b1aba | 18 | } |
df98563e | 19 | ] |
693b1aba C |
20 | |
21 | @NgModule({ | |
04de542a C |
22 | imports: [ |
23 | RouterModule.forRoot(routes, { | |
24 | useHash: Boolean(history.pushState) === false, | |
a685e25c | 25 | preloadingStrategy: PreloadSelectedModulesList |
04de542a C |
26 | }) |
27 | ], | |
901637bb C |
28 | providers: [ |
29 | PreloadSelectedModulesList | |
30 | ], | |
693b1aba C |
31 | exports: [ RouterModule ] |
32 | }) | |
33 | export class AppRoutingModule {} |