angular2-style-guide icon indicating copy to clipboard operation
angular2-style-guide copied to clipboard

Use HostBinding/HostListener instead of host property

Open cm0s opened this issue 8 years ago • 0 comments

I'm not really fond of this recommandation.

Look at this code : https://github.com/angular/material2/blob/master/src/components/checkbox/checkbox.ts

Having to declare all the properties set in the host property will make the code far less readable.

Well, perhaps it's just a matter of taste.

cm0s avatar Apr 16 '16 14:04 cm0s