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