Login as First Page

How to set login as First page instead landing

This section explains how to set the Login page as the default starting page, skipping the landing page, for cases where it is not needed.

  1. Update route at: src/app/app-routing.module.ts

app-routing.module.ts
// angular import
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

// project import
import { AdminComponent } from './demo/layout/admin';
import { EmptyComponent } from './demo/layout/empty/empty.component';
import { GuestComponent } from './demo/layout/front/guest.component';
import { AuthGuard } from './@theme/helpers/auth.guard';

const routes: Routes = [
{
    path: '',
    component: EmptyComponent,
    children: [
      {
        path: '',
        loadComponent: () => import('./demo/pages/auth/authentication-1/login/login.component')
      },
      ...
      ...
  }

Last updated