Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
export const routes: Routes = [
{ path: '',
component: AuthenticatedComponent,
canActivate: [AuthenticatedGuard],
children: [
{ path: section1, loadChildren: 'app/sections/section1/section1.module#Section1Module' },
{ path: section2, loadChildren: 'app/sections/section2/section2.module#Section2Module' },
{ path: dashboard, loadChildren: 'app/dashboard/dashboard.module#DashboardModule' },
]
}
];
export const routing: ModuleWithProviders = RouterModule.forChild(routes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment