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: 'valuesSorting',
    loadChildren: () => import('./valuesSorting/valuesSorting.module').then( m => m.ValuesSortingPageModule)
  },
  {
    path: 'valuesAlign',
    loadChildren: () => import('./valuesAlign/valuesAlign.module').then( m => m.ValuesAlignPageModule)
  },
  {
    path: '',
    redirectTo: 'home',
    pathMatch: 'full'
  },
];

@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule { }
