blob: 1d55b4cea2db272dac5ec2b3737a138487c39cd8 (
plain) (
tree)
|
|
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'
},
{
path: 'account',
loadChildren: './+account/account.module#AccountModule'
}
]
@NgModule({
imports: [
RouterModule.forRoot(routes, {
useHash: Boolean(history.pushState) === false,
preloadingStrategy: PreloadSelectedModulesList
})
],
providers: [
PreloadSelectedModulesList
],
exports: [ RouterModule ]
})
export class AppRoutingModule {}
|