TooltipTriggerDirective: change inputs for models
Description
Change inputs for models to set properties from outside.
Th goal is to be able to set luTooltip, luTooltipDisabled etc directly within a .ts file. E.g. on T.Abs we have a translateI18n directive that adds a tooltip on host so we want to set it within ngOnInit.
:woman_cook: https://lucca-front.lucca.tech/PR-3281/storybook
@GuillaumeNury I was thinking about this yesertday and I thought: what about using linkedSignals for input overrides?
Something like:
luTooltip = input<PortalContent>();
tooltipContent = linkedSignal(() => this.luTooltip());
This would allow overriding the value from any component using this as hostDirective without using a model, additionally, with a proper naming convention, we could make it easy to use for most devs.
However, it wouldn't fix the issue with required imports, but that's on Angular.
I like the idea of linkedSIgnal!