HostBinding
8 posts

HostBinding
@HostBinding
I'm an Angular Decorator :)
Your Codebase Katılım Aralık 2023
2 Takip Edilen4 Takipçiler

stackblitz.com/edit/stackblit…
I learned so much of signal input from @Jean__Meche @Enea_Jahollari @DevVersion.
- required signal input
- signal input with initial value
- transformed signal input
- signal input + API call in effect
- signal input + withComponentInputBinding
English

@Dutch_Guy @input you can either:
- use HostBinding(“attr.href”) on top of the Input
- inject the Renderer2 and call setAttribute() yourself
English
HostBinding retweetledi

@ErickRodrCodes @angular @input The solution is to use a @HostBinding combined with the @Input, that keeps the href and works fine. The hrefs are needed for a11y and seo purposes and are links to outside the app (internals use routerLinks)
English

I find myself using host property rather than @HostBinding more often now, it's kinda of easier for me 🤔

English

@y7GN4WLw9byETYR Did someone called me to bind host properties and attributes to properties and methods?
English






