From 93a8925b10ddbfe73dc6a031893491157ff0671e Mon Sep 17 00:00:00 2001 From: Foxandxss Date: Wed, 4 May 2016 15:58:43 +0200 Subject: [PATCH] docs(style-guide): update 10-01 for new router closes #1281 --- .../_examples/style-guide/ts/10-01/app/app.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/docs/_examples/style-guide/ts/10-01/app/app.component.ts b/public/docs/_examples/style-guide/ts/10-01/app/app.component.ts index 111a0010cb..bdc95b503b 100644 --- a/public/docs/_examples/style-guide/ts/10-01/app/app.component.ts +++ b/public/docs/_examples/style-guide/ts/10-01/app/app.component.ts @@ -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 {}