X Tutup
Skip to content

Commit 3529ee9

Browse files
ceboralexeagle
authored andcommitted
docs(cheatsheet): change as to name in routing section
1 parent 29aa6a6 commit 3529ee9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/angular2/docs/cheatsheet/routing.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ Routing and navigation
1010
@cheatsheetItem
1111
syntax(ts):
1212
`@RouteConfig([
13-
{ path: '/:myParam', component: MyComponent, as: 'MyCmp' },
14-
{ path: '/staticPath', component: ..., as: ...},
15-
{ path: '/*wildCardParam', component: ..., as: ...}
13+
{ path: '/:myParam', component: MyComponent, name: 'MyCmp' },
14+
{ path: '/staticPath', component: ..., name: ...},
15+
{ path: '/*wildCardParam', component: ..., name: ...}
1616
])
1717
class MyComponent() {}`|`@RouteConfig`
1818
syntax(js):
1919
`var MyComponent = ng.router.RouteConfig([
20-
{ path: '/:myParam', component: MyComponent, as: 'MyCmp' },
21-
{ path: '/staticPath', component: ..., as: ...},
22-
{ path: '/*wildCardParam', component: ..., as: ...}
20+
{ path: '/:myParam', component: MyComponent, name: 'MyCmp' },
21+
{ path: '/staticPath', component: ..., name: ...},
22+
{ path: '/*wildCardParam', component: ..., name: ...}
2323
]).Class({
2424
constructor: function() {}
2525
});`|`ng.router.RouteConfig`

0 commit comments

Comments
 (0)
X Tutup