File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export class RouteRegistry {
4343 this . configFromComponent ( component ) ; 
4444 } ) ; 
4545
46-  recognizer . addConfig ( config [ 'path' ] ,  config ,  config [ 'alias ' ] ) ; 
46+  recognizer . addConfig ( config [ 'path' ] ,  config ,  config [ 'as ' ] ) ; 
4747 } 
4848
4949 configFromComponent ( component )  { 
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ export function main() {
134134 it ( 'should generate link hrefs' ,  inject ( [ AsyncTestCompleter ] ,  ( async )  =>  { 
135135 ctx . name  =  'brian' ; 
136136 compile ( '<a href="hello" router-link="user" [router-params]="{name: name}">{{name}}</a>' ) 
137-  . then ( ( _ )  =>  rtr . config ( { 'path' : '/user/:name' ,  'component' : UserCmp ,  'alias ' : 'user' } ) ) 
137+  . then ( ( _ )  =>  rtr . config ( { 'path' : '/user/:name' ,  'component' : UserCmp ,  'as ' : 'user' } ) ) 
138138 . then ( ( _ )  =>  rtr . navigate ( '/a/b' ) ) 
139139 . then ( ( _ )  =>  { 
140140 view . detectChanges ( ) ; 
                                 You can’t perform that action at this time. 
               
                  
0 commit comments