Rule: use-host-property-decorator

Use @HostProperty decorator rather than the host property of @Component and @Directive metadata.

See more at https://angular.io/styleguide#style-06-03.

Rationale

The property associated with @HostBinding or the method associated with @HostListener can be modified only in a single place: in the directive’s class. If you use the host metadata property, you must modify both the property declaration inside the controller, and the metadata associated with the directive.

Notes:
TS Only

Config

Not configurable.

Examples
Schema
null