Login as First Page
How to set login as First page instead landing
// Angular Imports
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
// project import
import { AdminLayout } from './theme/layout/admin-layout/admin-layout.component';
import { GuestLayouts } from './theme/layout/guest-layout/guest-layout.component';
import { AuthGuardChild } from './theme/shared/components/_helpers/auth.guard';
import { SimpleLayouts } from './theme/layout/simple-layout/simple-layout.component';
import { Role } from './theme/shared/components/_helpers/role';
const routes: Routes = [
{
path: '',
component: GuestLayouts,
children: [
{
path: '',
redirectTo: '/login',
pathMatch: 'full'
},
// {
// path: '',
// loadComponent: () => import('./demo/pages/landing/landing.component').then((c) => c.LandingComponent)
// },
{
path: 'login',
loadComponent: () => import('./demo/pages/authentication/auth-login/auth-login.component').then((c) => c.AuthLoginComponent)
},
...
...
},
...
]
Last updated