You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// No error
@Component({selector: 'sg-hero-cmp',template: `<h1>{{ test.get() }}</h1>`})classHeroComponent{publictest: Testconstructor(test: Test){this.test=test;}}// Error: The property "test" that you're trying to access does not exist in the class declaration. (no-access-missing-member)
@Component({selector: 'sg-hero-cmp',template: `<h1>{{ test.get() }}</h1>`})classHeroComponent{constructor(publictest: Test){}}
The text was updated successfully, but these errors were encountered:
bertrandg
changed the title
Error when access modules injected with 'public' in constructor
Error when access modules injected with 'public' in constructor (inside template)
Nov 16, 2016
Here is a simple example better to understand:
Tested with 1.0.0-beta.4 and directly on http://codelyzer.com/
The text was updated successfully, but these errors were encountered: