From 35878c559fc11c978db44a72b0937826de51fdb2 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Sat, 10 Oct 2015 10:04:13 -0700 Subject: [PATCH] doc(LifecycleHooks): change Property for Input Closes #4652 --- modules/angular2/src/core/linker/interfaces.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/angular2/src/core/linker/interfaces.ts b/modules/angular2/src/core/linker/interfaces.ts index ea28d6f376..b32f97c38f 100644 --- a/modules/angular2/src/core/linker/interfaces.ts +++ b/modules/angular2/src/core/linker/interfaces.ts @@ -53,7 +53,7 @@ export var LIFECYCLE_HOOKS_VALUES = [ * @Component({selector: 'my-cmp'}) * @View({template: `

myProp = {{myProp}}

`}) * class MyComponent implements OnChanges { - * @Property() myProp: any; + * @Input() myProp: any; * * onChanges(changes: {[propName: string]: SimpleChange}) { * console.log('onChanges - myProp = ' + changes['myProp'].currentValue); @@ -151,7 +151,7 @@ export interface OnInit { onInit(); } * directives: [NgFor] * }) * class CustomCheckComponent implements DoCheck { - * @Property() list: any[]; + * @Input() list: any[]; * differ: any; * logs = []; * @@ -233,7 +233,7 @@ export interface OnDestroy { onDestroy(); } * @Component({selector: 'child-cmp'}) * @View({template: `{{where}} child`}) * class ChildComponent { - * @Property() where: string; + * @Input() where: string; * } * * @Component({selector: 'parent-cmp'}) @@ -281,7 +281,7 @@ export interface AfterContentInit { afterContentInit(); } * @Component({selector: 'child-cmp'}) * @View({template: `{{where}} child`}) * class ChildComponent { - * @Property() where: string; + * @Input() where: string; * } * * @Component({selector: 'parent-cmp'}) @@ -331,7 +331,7 @@ export interface AfterContentChecked { afterContentChecked(); } * @Component({selector: 'child-cmp'}) * @View({template: `{{where}} child`}) * class ChildComponent { - * @Property() where: string; + * @Input() where: string; * } * * @Component({selector: 'parent-cmp'}) @@ -379,7 +379,7 @@ export interface AfterViewInit { afterViewInit(); } * @Component({selector: 'child-cmp'}) * @View({template: `{{where}} child`}) * class ChildComponent { - * @Property() where: string; + * @Input() where: string; * } * * @Component({selector: 'parent-cmp'})