1
0
Fork 0
peertube/client/src/app/app-routing.module.ts
2018-03-19 10:32:51 +01:00

25 lines
552 B
TypeScript

import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
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 {}