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'
27 RouterModule.forRoot(routes, {
28 useHash: Boolean(history.pushState) === false,
29 preloadingStrategy: PreloadSelectedModulesList
33 PreloadSelectedModulesList
35 exports: [ RouterModule ]
37 export class AppRoutingModule {}