1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
4 import { PreloadSelectedModulesList } from './core'
6 const routes: Routes = [
9 loadChildren: './+admin/admin.module#AdminModule'
13 loadChildren: './+my-account/my-account.module#MyAccountModule'
17 loadChildren: './+accounts/accounts.module#AccountsModule'
20 path: 'video-channels',
21 loadChildren: './+video-channels/video-channels.module#VideoChannelsModule'
25 loadChildren: './+about/about.module#AboutModule'
29 loadChildren: './+page-not-found/page-not-found.module#PageNotFoundModule'
35 RouterModule.forRoot(routes, {
36 useHash: Boolean(history.pushState) === false,
37 preloadingStrategy: PreloadSelectedModulesList
41 PreloadSelectedModulesList
43 exports: [ RouterModule ]
45 export class AppRoutingModule {}