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
Angular allows to alias inputs, for example when kebab-case attribute names are desired (see here). When I do so and assign such attribute a value in the args list then it seems the signal isn't getting the correct value (InputSignal<string>) but the value itself directly.
Open Devtools' console which will not show errors about backgroundColor (which is aliased)
Navigate to the story Example\Button\Broken
In Devtools' console there will be error messages about backgroundColor only. The attribute foregroundColor is not mentioned and the only difference is it not being aliased in the component.
ERROR TypeError: ctx.backgroundColor is not a function
at ButtonComponent_Template (template.html:6:3)
The broken story defines both attribute in the args, that seems to "activate" the difference.
Describe the bug
Angular allows to alias inputs, for example when kebab-case attribute names are desired (see here). When I do so and assign such attribute a value in the
args
list then it seems the signal isn't getting the correct value (InputSignal<string>
) but the value itself directly.Related to #25784 and PR #26413
Reproduction link
https://stackblitz.com/edit/github-gh38gu
Reproduction steps
The broken story defines both attribute in the args, that seems to "activate" the difference.
System
Additional context
No response
The text was updated successfully, but these errors were encountered: