This commit is contained in:
Peter Maquiran
2021-07-02 16:05:21 +01:00
parent 2fff1430c0
commit 382104d058
15 changed files with 212 additions and 39 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { IndexGuard } from '../guards/index.guard';
import { LoginGuard } from '../guards/login.guard';
import { IndexPage } from './index.page';
const routes: Routes = [
@@ -15,7 +16,8 @@ const routes: Routes = [
}, */
{
path: '',
loadChildren: ()=> import('../pages/login/login.module').then(m => m.LoginPageModule)
loadChildren: ()=> import('../pages/login/login.module').then(m => m.LoginPageModule),
canActivate: [LoginGuard]
},
]
}