Rule proposal: template/no-variable-assignment #819
mgechev
started this conversation in
New Rule Proposals
Replies: 2 comments
-
Right now this is built-in into the Ivy compiler since it throws exceptions when the template contains assignments to template variables: |
Beta Was this translation helpful? Give feedback.
0 replies
-
I believe that's not targeting template variables, but any field declared in the component's constructor. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This rule should report if an Angular template contains property assignments to template variables.
Currently, there's no equivalent of such a rule in codelyzer, but is something we can consider adding to the CLI.
Beta Was this translation helpful? Give feedback.
All reactions