diff --git a/modules/angular2/docs/cheatsheet/routing.md b/modules/angular2/docs/cheatsheet/routing.md index 4a265897ee..2bf1e777b9 100644 --- a/modules/angular2/docs/cheatsheet/routing.md +++ b/modules/angular2/docs/cheatsheet/routing.md @@ -10,16 +10,16 @@ Routing and navigation @cheatsheetItem syntax(ts): `@RouteConfig([ - { path: '/:myParam', component: MyComponent, as: 'MyCmp' }, - { path: '/staticPath', component: ..., as: ...}, - { path: '/*wildCardParam', component: ..., as: ...} + { path: '/:myParam', component: MyComponent, name: 'MyCmp' }, + { path: '/staticPath', component: ..., name: ...}, + { path: '/*wildCardParam', component: ..., name: ...} ]) class MyComponent() {}`|`@RouteConfig` syntax(js): `var MyComponent = ng.router.RouteConfig([ - { path: '/:myParam', component: MyComponent, as: 'MyCmp' }, - { path: '/staticPath', component: ..., as: ...}, - { path: '/*wildCardParam', component: ..., as: ...} + { path: '/:myParam', component: MyComponent, name: 'MyCmp' }, + { path: '/staticPath', component: ..., name: ...}, + { path: '/*wildCardParam', component: ..., name: ...} ]).Class({ constructor: function() {} });`|`ng.router.RouteConfig`