2016-06-09 13:00:26 -05:00
|
|
|
// #docplaster
|
|
|
|
// #docregion
|
|
|
|
// #docregion route-config
|
|
|
|
import { provideRouter, RouterConfig } from '@angular/router';
|
|
|
|
|
|
|
|
// #enddocregion route-config
|
|
|
|
import { CrisisListComponent } from './crisis-list.component';
|
|
|
|
import { HeroListComponent } from './hero-list.component';
|
|
|
|
|
|
|
|
// #docregion route-config
|
2016-07-05 21:20:33 -05:00
|
|
|
const routes: RouterConfig = [
|
2016-06-17 22:55:36 -04:00
|
|
|
{ path: 'crisis-center', component: CrisisListComponent },
|
|
|
|
{ path: 'heroes', component: HeroListComponent }
|
2016-06-09 13:00:26 -05:00
|
|
|
];
|
|
|
|
|
2016-07-07 18:46:35 -07:00
|
|
|
export const appRouterProviders = [
|
2016-06-09 13:00:26 -05:00
|
|
|
provideRouter(routes)
|
|
|
|
];
|
|
|
|
// #enddocregion route-config
|