15 lines
292 B
TypeScript
15 lines
292 B
TypeScript
// #docregion
|
|
import { provideRouter, RouterConfig } from '@angular/router';
|
|
import { HeroesComponent } from './heroes.component';
|
|
|
|
const routes: RouterConfig = [
|
|
{
|
|
path: 'heroes',
|
|
component: HeroesComponent
|
|
}
|
|
];
|
|
|
|
export const APP_ROUTER_PROVIDERS = [
|
|
provideRouter(routes)
|
|
];
|