Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc(LifecycleHooks): change Property for Input #4652

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions modules/angular2/src/core/linker/interfaces.ts
Expand Up @@ -53,7 +53,7 @@ export var LIFECYCLE_HOOKS_VALUES = [
* @Component({selector: 'my-cmp'})
* @View({template: `<p>myProp = {{myProp}}</p>`})
* class MyComponent implements OnChanges {
* @Property() myProp: any;
* @Input() myProp: any;
*
* onChanges(changes: {[propName: string]: SimpleChange}) {
* console.log('onChanges - myProp = ' + changes['myProp'].currentValue);
Expand Down Expand Up @@ -151,7 +151,7 @@ export interface OnInit { onInit(); }
* directives: [NgFor]
* })
* class CustomCheckComponent implements DoCheck {
* @Property() list: any[];
* @Input() list: any[];
* differ: any;
* logs = [];
*
Expand Down Expand Up @@ -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'})
Expand Down Expand Up @@ -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'})
Expand Down Expand Up @@ -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'})
Expand Down Expand Up @@ -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'})
Expand Down