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: './+page-not-found/page-not-found.module#PageNotFoundModule'
31 RouterModule.forRoot(routes, {
32 useHash: Boolean(history.pushState) === false,
33 preloadingStrategy: PreloadSelectedModulesList
37 PreloadSelectedModulesList
39 exports: [ RouterModule ]
41 export class AppRoutingModule {}