2017-06-16 08:32:15 -04:00
|
|
|
import { NgModule } from '@angular/core'
|
2018-03-19 05:24:12 -04:00
|
|
|
import { RouterModule, Routes } from '@angular/router'
|
2017-10-09 08:28:44 -04:00
|
|
|
|
|
|
|
import { PreloadSelectedModulesList } from './core'
|
2016-11-20 11:18:15 -05:00
|
|
|
|
|
|
|
const routes: Routes = [
|
2018-05-16 13:59:21 -04: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'
|
|
|
|
// }
|
2017-06-16 08:32:15 -04:00
|
|
|
]
|
2016-11-20 11:18:15 -05:00
|
|
|
|
|
|
|
@NgModule({
|
2017-09-06 15:48:15 -04:00
|
|
|
imports: [
|
|
|
|
RouterModule.forRoot(routes, {
|
|
|
|
useHash: Boolean(history.pushState) === false,
|
2017-10-09 08:28:44 -04:00
|
|
|
preloadingStrategy: PreloadSelectedModulesList
|
2017-09-06 15:48:15 -04:00
|
|
|
})
|
|
|
|
],
|
2018-03-01 07:57:29 -05:00
|
|
|
providers: [
|
|
|
|
PreloadSelectedModulesList
|
|
|
|
],
|
2016-11-20 11:18:15 -05:00
|
|
|
exports: [ RouterModule ]
|
|
|
|
})
|
|
|
|
export class AppRoutingModule {}
|