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?
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.
Most helpful comment
Hey @Ismaestro! This doesn't seem like an issue related to codelyzer. It's not recommended to bind to
privatemembers 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.