@@ -10,16 +10,16 @@ Routing and navigation
1010@cheatsheetItem
1111syntax(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] )
1717class MyComponent() {}` | ` @RouteConfig`
1818syntax(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