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/authentication/authentication-v1/v1-login/v1-login.component').then((c) => c.V1LoginComponent)
},
// {
// path: '',
// loadComponent: () => import('./demo/pages/landing/landing.component').then((c) => c.LandingComponent)
// },
...
]
},
....
}Last updated