From e0c976c8cf718159c74f08dee4ce229293c16515 Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Wed, 16 Aug 2017 15:54:36 +0100 Subject: [PATCH] Move dashboard redirect into dashboard routing module --- src/app/app.routing.ts | 1 - src/app/dashboard/dashboard.routing.ts | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/app.routing.ts b/src/app/app.routing.ts index c430c9f..e39bdb6 100644 --- a/src/app/app.routing.ts +++ b/src/app/app.routing.ts @@ -5,7 +5,6 @@ import { P404Component } from './pages/404.component'; import { P500Component } from './pages/500.component'; export const routes: Routes = [ - { path: '', redirectTo: '/dashboard', pathMatch: 'full' }, { path: '404', component: P404Component }, { path: '500', component: P500Component }, { path: '**', redirectTo: '/404' }, diff --git a/src/app/dashboard/dashboard.routing.ts b/src/app/dashboard/dashboard.routing.ts index 792ac39..dcd9bfa 100644 --- a/src/app/dashboard/dashboard.routing.ts +++ b/src/app/dashboard/dashboard.routing.ts @@ -1,5 +1,6 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; + import { AuthGuard } from '../_guards/auth.guard'; import { DashboardComponent } from './dashboard.component'; @@ -10,6 +11,7 @@ import { AddDataComponent } from './add-data.component'; // Using child path to allow for FullLayout theming const routes: Routes = [ + { path: '', redirectTo: '/dashboard', pathMatch: 'full' }, { path: '', component: FullLayoutComponent,