- angular-http-cache-interceptor.git
- src
- app
- app-routing.module.ts
This file ( 856B ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
import {NgModule} from '@angular/core'
import {PreloadAllModules, RouterModule, Routes} from '@angular/router'
const routes: Routes = [
{
path: 'default',
loadChildren: () => import('./default/default.module').then(m => m.DefaultModule)
},
{
path: 'cache',
loadChildren: () => import('./cache/cache.module').then(m => m.CacheModule)
},
{
path: 'non-cache',
loadChildren: () => import('./non-cache/non-cache.module').then(m => m.NonCacheModule)
},
{
path: '',
redirectTo: `/default`,
pathMatch: 'full'
},
{
path: '**',
loadChildren: () => import('./not-found/not-found.module').then(m => m.NotFoundModule)
}
]
@NgModule({
imports: [
RouterModule.forRoot(routes, {
preloadingStrategy: PreloadAllModules,
})
],
exports: [RouterModule]
})
export class AppRoutingModule {
}