Rule proposal: prefer-host-metadata-property #2303
StavNoyAkur8
started this conversation in
New Rule Proposals
Replies: 1 comment
-
Thanks I'd happily accept a PR for this rule |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The inverse of
no-host-metadata-property
, which was deprecated in v18 (#1839) and removed in v19 (#2113), because:When binding to component host elements (docs), disallow using
HostBinding()
andHostListener()
. Prefer using thehost
metadata property.As in:
❌ Invalid Code
✅ Valid Code
Alternative name: "no-host-property-decorators"
Beta Was this translation helpful? Give feedback.
All reactions