angular icon indicating copy to clipboard operation
angular copied to clipboard

Structural directive with HostBinding should be a compiler warning

Open valakis opened this issue 6 years ago • 1 comments

As far as my understanding about the structural directives goes, @HostBinding and friends will not work with them because it will attach them to the <template></template> in the background, which is pointless.

I believe the compiler should emit a warning in this case.

valakis avatar Apr 03 '19 15:04 valakis

I would prefer a compiler error instead of a warning. Warnings tend to be ignored.

jbdeboer avatar Apr 05 '19 18:04 jbdeboer