1
0
Fork 0
peertube/client/src/app/app-routing.module.ts
2018-03-01 13:57:29 +01:00

26 lines
621 B
TypeScript

import { NgModule } from '@angular/core'
import { Routes, RouterModule } from '@angular/router'
import { RedirectService } from '@app/core/routing/redirect.service'
import { PreloadSelectedModulesList } from './core'
const routes: Routes = [
{
path: 'admin',
loadChildren: './+admin/admin.module#AdminModule'
}
]
@NgModule({
imports: [
RouterModule.forRoot(routes, {
useHash: Boolean(history.pushState) === false,
preloadingStrategy: PreloadSelectedModulesList
})
],
providers: [
PreloadSelectedModulesList
],
exports: [ RouterModule ]
})
export class AppRoutingModule {}