angular icon indicating copy to clipboard operation
angular copied to clipboard

Template compiler should report duplicate reference variable declarations

Open chalin opened this issue 6 years ago • 1 comments

Duplicate template reference variable "declarations" can lead to confusing results. It would be great if the new template compiler would report this as an error. E.g.,

<input #name>
...
<input #name>

cc @kwalrath

chalin avatar Jan 30 '18 13:01 chalin

Technically this is OK, if you nest views, FWIW.

We could make sure you don't do this in the same view, though.

/cc @alorenzen

matanlurey avatar Jan 30 '18 18:01 matanlurey