PeerTube/client/src/app/app-routing.module.ts

38 lines
912 B
TypeScript
Raw Normal View History

import { NgModule } from '@angular/core'
2018-03-19 04:24:12 -05:00
import { RouterModule, Routes } from '@angular/router'
2017-10-09 07:28:44 -05:00
import { PreloadSelectedModulesList } from './core'
2016-11-20 10:18:15 -06:00
const routes: Routes = [
2018-05-16 12:59:21 -05:00
// {
// path: 'admin',
// loadChildren: './+admin/admin.module#AdminModule'
// },
// {
// path: 'my-account',
// loadChildren: './+my-account/my-account.module#MyAccountModule'
// },
// {
// path: 'accounts',
// loadChildren: './+accounts/accounts.module#AccountsModule'
// },
// {
// path: 'video-channels',
// loadChildren: './+video-channels/video-channels.module#VideoChannelsModule'
// }
]
2016-11-20 10:18:15 -06:00
@NgModule({
2017-09-06 14:48:15 -05:00
imports: [
RouterModule.forRoot(routes, {
useHash: Boolean(history.pushState) === false,
2017-10-09 07:28:44 -05:00
preloadingStrategy: PreloadSelectedModulesList
2017-09-06 14:48:15 -05:00
})
],
2018-03-01 06:57:29 -06:00
providers: [
PreloadSelectedModulesList
],
2016-11-20 10:18:15 -06:00
exports: [ RouterModule ]
})
export class AppRoutingModule {}