blob: f31b51e2381e8226c59e69df90164e76067a9b4f (
plain) (
tree)
|
|
import { NgModule } from '@angular/core'
import { Routes, RouterModule } from '@angular/router'
import { PreloadSelectedModulesList } from './core'
const routes: Routes = [
{
path: '',
redirectTo: '/videos/trending',
pathMatch: 'full'
},
{
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 {}
|