PortfolioApp/AuthentesApp/src/app/app-routing.module.ts
2021-12-06 02:31:31 +01:00

31 lines
732 B
TypeScript

import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{
path: 'home',
loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
},
{
path: 'beliefs',
loadChildren: () => import('./beliefs/beliefs.module').then( m => m.BeliefsPageModule)
},
{
path: 'values',
loadChildren: () => import('./values/values.module').then( m => m.ValuesPageModule)
},
{
path: '',
redirectTo: 'home',
pathMatch: 'full'
},
];
@NgModule({
imports: [
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
],
exports: [RouterModule]
})
export class AppRoutingModule { }