Able Pro
Angular
Angular
  • ✨Introduction
  • πŸš€Quick Installation
  • πŸ“‚Directory Structure
  • πŸ“„Page Structure
  • πŸ› οΈTheme Configuration
  • 🎨Theme Layout
  • πŸ“¦Dependencies
  • 🎭Theme Structure
  • πŸ“šHow to
    • Dashboard as First Page
    • Login as First Page
    • Remove Authentication
    • Guard Children Routes
    • 🚫Remove Role Base Authentication
    • Role Base Authentication
  • πŸ“…Changelog
  • πŸ†˜Support
Powered by GitBook
On this page
  1. How to

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 { AuthGuardChild } from './@theme/helpers/auth.guard';

 {
    path: '',
    component: AdminComponent,
    // canActivateChild: [AuthGuardChild],,  <!-- this part remove -->
    children: []
 }
PreviousLogin as First PageNextGuard Children Routes

Last updated 5 months ago

πŸ“š