diff --git a/modules/angular2/src/router/route_registry.js b/modules/angular2/src/router/route_registry.js index 812aec789c..b5c9dcfd2a 100644 --- a/modules/angular2/src/router/route_registry.js +++ b/modules/angular2/src/router/route_registry.js @@ -43,7 +43,7 @@ export class RouteRegistry { this.configFromComponent(component); }); - recognizer.addConfig(config['path'], config, config['alias']); + recognizer.addConfig(config['path'], config, config['as']); } configFromComponent(component) { diff --git a/modules/angular2/test/router/outlet_spec.js b/modules/angular2/test/router/outlet_spec.js index 499c8aedd8..211b71c8a7 100644 --- a/modules/angular2/test/router/outlet_spec.js +++ b/modules/angular2/test/router/outlet_spec.js @@ -134,7 +134,7 @@ export function main() { it('should generate link hrefs', inject([AsyncTestCompleter], (async) => { ctx.name = 'brian'; compile('{{name}}') - .then((_) => rtr.config({'path': '/user/:name', 'component': UserCmp, 'alias': 'user'})) + .then((_) => rtr.config({'path': '/user/:name', 'component': UserCmp, 'as': 'user'})) .then((_) => rtr.navigate('/a/b')) .then((_) => { view.detectChanges();