parent
ba3c0ab7a0
commit
93a8925b10
|
@ -1,6 +1,6 @@
|
|||
// #docregion
|
||||
import { Component } from '@angular/core';
|
||||
import { RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS } from '@angular/router';
|
||||
import { Routes, ROUTER_DIRECTIVES, ROUTER_PROVIDERS } from '@angular/router';
|
||||
|
||||
import { NavComponent } from './shared/nav/nav.component';
|
||||
import { DashboardComponent } from './dashboard/dashboard.component';
|
||||
|
@ -17,8 +17,8 @@ import { HeroService } from './heroes/shared/hero.service';
|
|||
HeroService
|
||||
]
|
||||
})
|
||||
@RouteConfig([
|
||||
{ path: '/dashboard', name: 'Dashboard', component: DashboardComponent, useAsDefault: true },
|
||||
{ path: '/heroes/...', name: 'Heroes', component: HeroesComponent },
|
||||
@Routes([
|
||||
{ path: '/dashboard', component: DashboardComponent }, // , useAsDefault: true}, // coming soon
|
||||
{ path: '/heroes/...', component: HeroesComponent },
|
||||
])
|
||||
export class AppComponent {}
|
||||
|
|
Loading…
Reference in New Issue