16 lines
451 B
TypeScript
16 lines
451 B
TypeScript
// #docregion
|
|
import { Routes,
|
|
RouterModule } from '@angular/router';
|
|
|
|
export const routes: Routes = [
|
|
{ path: '', redirectTo: 'contact', pathMatch: 'full'},
|
|
// #docregion lazy-routes
|
|
{ path: 'crisis', loadChildren: 'app/crisis/crisis.module' },
|
|
{ path: 'heroes', loadChildren: 'app/hero/hero.module' }
|
|
// #enddocregion lazy-routes
|
|
];
|
|
|
|
// #docregion forRoot
|
|
export const routing = RouterModule.forRoot(routes);
|
|
// #enddocregion forRoot
|