From 3529ee9973eaba06f8284657fe9369e367429bb7 Mon Sep 17 00:00:00 2001 From: Felix Itzenplitz Date: Sun, 24 Jan 2016 09:04:46 +0100 Subject: [PATCH] docs(cheatsheet): change as to name in routing section --- modules/angular2/docs/cheatsheet/routing.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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`