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 { AdminComponent } from './theme/layout/admin/admin.component';
import { GuestComponent } from './theme/layout/guest/guest.component';
import { AuthGuardChild } from './theme/shared/_helpers/auth.guard';
import { Role } from './theme/shared/_helpers/role';
const routes: Routes = [
{
path: '',
component: GuestComponent,
children: [
{ path: '', redirectTo: '', pathMatch: 'full' },
// {
// path: '',
// loadComponent: () => import('./demo/pages/landing/landing.component').then((c) => c.LandingComponent)
// },
{
path: '',
loadComponent: () =>
import('./demo/pages/authentication/auth-signin-v2/auth-signin-v2.component').then((c) => c.AuthSigninV2Component)
},
...
]
},
....
}Last updated