Skip to content

Commit 35878c5

Browse files
committed
doc(LifecycleHooks): change Property for Input
Closes angular#4652
1 parent 0c1f9da commit 35878c5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/angular2/src/core/linker/interfaces.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export var LIFECYCLE_HOOKS_VALUES = [
5353
* @Component({selector: 'my-cmp'})
5454
* @View({template: `<p>myProp = {{myProp}}</p>`})
5555
* class MyComponent implements OnChanges {
56-
* @Property() myProp: any;
56+
* @Input() myProp: any;
5757
*
5858
* onChanges(changes: {[propName: string]: SimpleChange}) {
5959
* console.log('onChanges - myProp = ' + changes['myProp'].currentValue);
@@ -151,7 +151,7 @@ export interface OnInit { onInit(); }
151151
* directives: [NgFor]
152152
* })
153153
* class CustomCheckComponent implements DoCheck {
154-
* @Property() list: any[];
154+
* @Input() list: any[];
155155
* differ: any;
156156
* logs = [];
157157
*
@@ -233,7 +233,7 @@ export interface OnDestroy { onDestroy(); }
233233
* @Component({selector: 'child-cmp'})
234234
* @View({template: `{{where}} child`})
235235
* class ChildComponent {
236-
* @Property() where: string;
236+
* @Input() where: string;
237237
* }
238238
*
239239
* @Component({selector: 'parent-cmp'})
@@ -281,7 +281,7 @@ export interface AfterContentInit { afterContentInit(); }
281281
* @Component({selector: 'child-cmp'})
282282
* @View({template: `{{where}} child`})
283283
* class ChildComponent {
284-
* @Property() where: string;
284+
* @Input() where: string;
285285
* }
286286
*
287287
* @Component({selector: 'parent-cmp'})
@@ -331,7 +331,7 @@ export interface AfterContentChecked { afterContentChecked(); }
331331
* @Component({selector: 'child-cmp'})
332332
* @View({template: `{{where}} child`})
333333
* class ChildComponent {
334-
* @Property() where: string;
334+
* @Input() where: string;
335335
* }
336336
*
337337
* @Component({selector: 'parent-cmp'})
@@ -379,7 +379,7 @@ export interface AfterViewInit { afterViewInit(); }
379379
* @Component({selector: 'child-cmp'})
380380
* @View({template: `{{where}} child`})
381381
* class ChildComponent {
382-
* @Property() where: string;
382+
* @Input() where: string;
383383
* }
384384
*
385385
* @Component({selector: 'parent-cmp'})

0 commit comments

Comments
 (0)