2016-06-19 00:20:38 -04:00
|
|
|
// #docregion
|
|
|
|
|
import { provideRouter, RouterConfig } from '@angular/router';
|
|
|
|
|
import { HeroesComponent } from './heroes.component';
|
|
|
|
|
|
|
|
|
|
const routes: RouterConfig = [
|
|
|
|
|
{
|
2016-06-29 22:49:03 +05:30
|
|
|
path: 'heroes',
|
2016-06-19 00:20:38 -04:00
|
|
|
component: HeroesComponent
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export const APP_ROUTER_PROVIDERS = [
|
|
|
|
|
provideRouter(routes)
|
|
|
|
|
];
|