mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
parent
84d1f93d83
commit
de6774cd97
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ import {Url} from './url_parser';
|
|||
*
|
||||
* @Component({ template: 'user: {{id}}' })
|
||||
* class UserCmp {
|
||||
* string: id;
|
||||
* id: string;
|
||||
* constructor(params: RouteParams) {
|
||||
* this.id = params.get('id');
|
||||
* }
|
||||
|
|
|
|||
Loading…
Reference in a new issue