Angular 2 - Pass parameters to Route
问题 I have a <a> tag like below, <a [routerLink]="[/Person']">Person</a> So I want to pass the person.id to this /Person router. How can I pass it & handle it on @RouteConfig like params in Angular 1 回答1: Pass to router link: <a [routerLink]="['/Person', person.id]">Person</a> Handle in component: this.route.params.subscribe( (params: Params) => { this.id = params['id']; } ); Second way: this.route.params.forEach( (params: Params) => { this.id = params['id']; } ); In this example you have to