Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 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 },
]
}
]);