blob: c8a6b392429238fadf7d82b9d41e34fe1ead5c09 (
plain) (
tree)
|
|
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 {}
|