Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Component input property - setter - more explicit information needed #2881

Closed
michalboska opened this issue Nov 27, 2016 · 2 comments
Closed

Comments

@michalboska
Copy link

I was having problem with Angular not recognizing the bound @Input property. It showed up that the error was only caused by the annotated setter occuring later in the code, than the unannotated getter.

I suggest making this requirement more explicit in https://angular.io/docs/ts/latest/cookbook/component-communication.html#!#parent-to-child-setter because this way it IMHO suggests, that annotating the setter is what's important here, not that the annotated method (getter or setter) must occur first, before the unannotated one.

@michalboska
Copy link
Author

Original issue angular/angular#13108

@wardbell
Copy link
Contributor

See my comment on your angular/angular#13108 in which I investigated and determined that the problem is your compilation with a pre-release version of TypeScript.

I think that version of TypeScript has a bug and I should not compensate by dirtying the documentation with what is actually a misleading solution even if that solution is an effective workaround.

Let's also admit that this is a corner case.

wardbell added a commit to IdeaBlade/angular.io that referenced this issue Nov 29, 2016
Simplify name-child component.
Update TS version in package.json and the web systemjs.configs
Inspired by issue angular#2881
wardbell added a commit that referenced this issue Nov 29, 2016
Simplify name-child component.
Update TS version in package.json and the web systemjs.configs
Inspired by issue #2881
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants