Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
20 lines (15 sloc) 578 Bytes
import { ModuleWithProviders } from '@angular/core';
import { RouterModule } from '@angular/router';
import { RootComponent } from './root/root.component';
import { HomeComponent } from './home/home.component';
import { AuthGuard } from '../auth.guard';
export const routing: ModuleWithProviders = RouterModule.forChild([
{
path: 'dashboard',
component: RootComponent, canActivate: [AuthGuard],
children: [
{ path: '', component: HomeComponent },
{ path: 'home', component: HomeComponent },
]
}
]);
You can’t perform that action at this time.