This commit is contained in:
Drew Ansbacher
2021-07-07 14:44:55 -06:00
committed by Aiden McClelland
parent 27072b5a3b
commit 517251d672
8 changed files with 64 additions and 28 deletions

View File

@@ -1,14 +1,17 @@
import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
import { CanActivateHome, CanActivateRecover } from './guards/guards'
const routes: Routes = [
{
path: 'wizard',
loadChildren: () => import('./pages/home/home.module').then( m => m.HomePageModule)
loadChildren: () => import('./pages/home/home.module').then( m => m.HomePageModule),
canActivate: [CanActivateHome],
},
{
path: 'recover',
loadChildren: () => import('./pages/recover/recover.module').then( m => m.RecoverPageModule)
loadChildren: () => import('./pages/recover/recover.module').then( m => m.RecoverPageModule),
canActivate: [CanActivateRecover]
},
];