Last active
July 29, 2018 13:56
-
-
Save theoomoregbee/b0c7aa184db578dfa490790414c1b310 to your computer and use it in GitHub Desktop.
Dashboard routes for route guard post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Routes } from '@angular/router'; | |
import { LayoutComponent } from './layout/layout.component'; | |
import { HomeComponent } from './home/home.component'; | |
import { AdminComponent } from './admin/admin.component'; | |
export const dashboardRoutes: Routes = [ | |
{ | |
path: 'dashboard', | |
component: LayoutComponent, | |
children: [ | |
{ path: '', redirectTo: 'home', pathMatch: 'full' }, | |
{ path: 'home', component: HomeComponent}, | |
{ path: 'admin', component: AdminComponent} | |
] | |
} | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment