Files
doneit-web/src/app/index/index-routing.module.ts
T

35 lines
927 B
TypeScript
Raw Normal View History

2020-08-05 15:39:16 +01:00
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
2021-07-02 16:05:21 +01:00
import { LoginGuard } from '../guards/login.guard';
2020-08-05 15:39:16 +01:00
import { IndexPage } from './index.page';
const routes: Routes = [
{
path: '',
component: IndexPage,
/* canActivate: [IndexGuard], */
2020-08-05 15:39:16 +01:00
children: [
/*{
2020-08-05 15:39:16 +01:00
path: '',
loadChildren: ()=> import('../pages/welcome/welcome.module').then(m => m.WelcomePageModule)
}, */
2020-08-05 15:39:16 +01:00
{
path: '',
2021-07-02 16:05:21 +01:00
loadChildren: ()=> import('../pages/login/login.module').then(m => m.LoginPageModule),
canActivate: [LoginGuard]
2020-08-05 15:39:16 +01:00
},
2023-01-05 12:11:50 +01:00
{
path: 'auth',
loadChildren: ()=> import('../pages/login/login.module').then(m => m.LoginPageModule),
canActivate: [LoginGuard]
},
2020-08-05 15:39:16 +01:00
]
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class IndexPageRoutingModule {}