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

no-access-missing-member doesn't work with external HTML #311

Closed
fr0 opened this issue May 22, 2017 · 3 comments
Closed

no-access-missing-member doesn't work with external HTML #311

fr0 opened this issue May 22, 2017 · 3 comments
Assignees

Comments

@fr0
Copy link

fr0 commented May 22, 2017

When using a separate .html file (via templateUrl in the @Component decorator) instead of an inline template, no-access-missing-member doesn't complain about using properties (e.g. in an *ngIf expression) that don't exist in the class definition.

To reproduce:

  1. Use Angular CLI to create a new project, e.g.: ng new test-playground
  2. Edit the generated src/app/app.component.html to add *ngIf="foobar" to the h1 tag. (Do not add a foobar property to the class)
  3. Run ng lint. The output will be All files pass linting. It seems to me that it should complain about the use of the foobar property that does not exist.
@mgechev
Copy link
Owner

mgechev commented May 22, 2017

I will try, thanks.

@fr0
Copy link
Author

fr0 commented May 22, 2017

For reference, the output of ng --version:

@angular/cli: 1.0.1
node: 6.10.2
os: darwin x64
@angular/common: 4.1.3
@angular/compiler: 4.1.3
@angular/core: 4.1.3
@angular/forms: 4.1.3
@angular/http: 4.1.3
@angular/platform-browser: 4.1.3
@angular/platform-browser-dynamic: 4.1.3
@angular/router: 4.1.3
@angular/cli: 1.0.1
@angular/compiler-cli: 4.1.3

@mgechev mgechev added this to the 3.1.0 - Alan Turing milestone Jun 9, 2017
@mgechev mgechev self-assigned this Jun 9, 2017
@mgechev
Copy link
Owner

mgechev commented Jun 9, 2017

Fixed by #319
Will release in the next days.

@mgechev mgechev closed this as completed Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants