Skip to content

Commit 28feac9

Browse files
committed
refactor(router): rename "alias" to "as"
1 parent 9153331 commit 28feac9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/angular2/src/router/route_registry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

modules/angular2/test/router/outlet_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)