docs(style-guide): update 10-01 for new router

closes #1281
This commit is contained in:
Foxandxss 2016-05-04 15:58:43 +02:00 committed by Ward Bell
parent ba3c0ab7a0
commit 93a8925b10
1 changed files with 4 additions and 4 deletions

View File

@ -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 {}