Codelyzer: You can bind only to public class members (templates-use-public)

Created on 12 Jan 2017  路  1Comment  路  Source: mgechev/codelyzer

I'm having some troubles with this rule (templates-use-public) and Webstorm. You can see it here:
http://stackoverflow.com/questions/41622122/tslint-you-can-bind-only-to-public-class-members-templates-use-public

What's the main purpose for this rule? What's wrong?

Most helpful comment

Hey @Ismaestro! This doesn't seem like an issue related to codelyzer. It's not recommended to bind to private members because the templates are considered consumers of the components' controller instances (take a look here and here).

Also, it seems the WebStorm tslint plugin has similar issue to one recently resolved in the VSCode tslint plugin https://github.com/Microsoft/vscode-tslint/issues/153.

>All comments

Hey @Ismaestro! This doesn't seem like an issue related to codelyzer. It's not recommended to bind to private members because the templates are considered consumers of the components' controller instances (take a look here and here).

Also, it seems the WebStorm tslint plugin has similar issue to one recently resolved in the VSCode tslint plugin https://github.com/Microsoft/vscode-tslint/issues/153.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fabioemoutinho picture fabioemoutinho  路  5Comments

negberts picture negberts  路  3Comments

wKoza picture wKoza  路  6Comments

rolandjitsu picture rolandjitsu  路  5Comments

KKrisu picture KKrisu  路  5Comments