angular_analyzer_plugin icon indicating copy to clipboard operation
angular_analyzer_plugin copied to clipboard

Lint usage of element references in inputs

Open MichaelRFairhurst opened this issue 8 years ago • 0 comments

This is probably a Bad Idea(TM) in general, and could be a great case for a lint.

<input #ref />
<pretty-print [val]="ref.value">

This type of thing could quite easily create infinite loops, and indicates that the template is being used for state instead of the component.

MichaelRFairhurst avatar Oct 24 '17 17:10 MichaelRFairhurst