hostBinding
Created by Lucas Garcia
hostBinding
is a function that returns either a writable or readonly signal and binds the value held in that signal to the host property passed as the first argument like @HostBinding
would do.
Usage
With @HostBinding
you can bind a color from a class property:
With hostBinding
you can now bind anything like @HostBinding
on writable or readonly signals:
With hostBinding
you can update and remove attributes, like @HostBinding
.