You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take the code given before as an example, the 'dragging' property in line 3 should can be auto completed, highlighted, navigate to, rename, and show comment popup when mouse hover.
Further more, description specific to key in the pattern supported by Angular (for example, '[class.dragging]' means add CSS class dragging to the host element when the value (here, is the dragging property of the component) evaluates to true, and removed when evaluates to false) of host should be popup as common document.
Describe alternatives you've considered
Anything else relevant?
Reference the JetBrains WebStorm Dev Experience.
The text was updated successfully, but these errors were encountered:
Yep, I think this is a good idea and really shouldn鈥檛 be too hard to implement (famous last words). We have all the pieces in other places - they just need to be put together in the host meta as well.
Edit: After investigation is non-trivial. The host bindings are not type-checked at all today like the templates are. There is no compiler support for adding this to the language service and would require a fair bit of work.
Is there a plan to add this support in the future? With the docs now recommending this approach for host binding (over the decorator), this feels like a bit of a gap.
Always prefer using the host property over [@HostBinding](https://angular.dev/api/core/HostBinding) and [@HostListener](https://angular.dev/api/core/HostListener). These decorators exist exclusively for backwards compatibility.
Is your feature request related to a problem? Please describe.
馃殌 feature request
Description
Add support for the host configuration item of Component decorator:
Feature Type
What does this bug affect
Describe the solution you'd like
Take the code given before as an example, the 'dragging' property in line 3 should can be auto completed, highlighted, navigate to, rename, and show comment popup when mouse hover.
Further more, description specific to key in the pattern supported by Angular (for example, '[class.dragging]' means add CSS class dragging to the host element when the value (here, is the dragging property of the component) evaluates to true, and removed when evaluates to false) of host should be popup as common document.
Describe alternatives you've considered
Anything else relevant?
Reference the JetBrains WebStorm Dev Experience.
The text was updated successfully, but these errors were encountered: