Remove Authentication
How to remove authentication login page.
βThis section explains how to bypass the login page and go directly to the dashboard page.
Update route at: src/app/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 { AuthGuardChild } from './@theme/helpers/auth.guard';
{
path: '',
component: AdminComponent,
// canActivateChild: [AuthGuardChild],, <!-- this part remove -->
children: []
}
Last updated