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: './+accounts/accounts.module#AccountsModule'
16 path: 'video-channels',
17 loadChildren: './+video-channels/video-channels.module#VideoChannelsModule'
23 RouterModule.forRoot(routes, {
24 useHash: Boolean(history.pushState) === false,
25 preloadingStrategy: PreloadSelectedModulesList
29 PreloadSelectedModulesList
31 exports: [ RouterModule ]
33 export class AppRoutingModule {}