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

False positive of no-access-missing-member #179

Closed
cloudlena opened this issue Dec 6, 2016 · 3 comments
Closed

False positive of no-access-missing-member #179

cloudlena opened this issue Dec 6, 2016 · 3 comments
Assignees
Labels

Comments

@cloudlena
Copy link

cloudlena commented Dec 6, 2016

I think the rule no-access-missing-member is throwing false positives in the following case of a component template:

<my-component [thing]="myThing">
  <div #myThing></div>
</my-component>

In this case, I'm getting The property "myThing" that you're trying to access does not exist in the class declaration. which shouldn't matter because myThing is defined in the HTML. Does it need to be defined again in the class? I think adding it as a #myThing attribute should be sufficient.

@mgechev
Copy link
Owner

mgechev commented Dec 6, 2016

Yes, this seems like an issue. I haven't formed properly the "symbol table" that I use for checking for existing in case of references.

@mgechev mgechev self-assigned this Dec 6, 2016
@mgechev mgechev added this to the 2.0.0-Beta 2 - Turing switch milestone Dec 6, 2016
@mgechev mgechev closed this as completed in 5783c4a Dec 7, 2016
@mgechev
Copy link
Owner

mgechev commented Dec 7, 2016

@mastertinner the fix will be published in the next beta.

@cloudlena
Copy link
Author

Awesome! Thx, @mgechev!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants