Remove Authentication

How to remove authentication login page.

​This section explains how to bypass the login page and go directly to the dashboard page.

  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';

 {
    path: '',
    component: AdminComponent,
    // canActivate: [AuthGuard],  <!-- this part remove -->
    children: []
 }

Last updated