Skip to content

fix(core): allow static attributes for explicit input transforms#69427

Open
cexbrayat wants to merge 1 commit into
angular:mainfrom
cexbrayat:fix/signal-input-transform-static-attributes
Open

fix(core): allow static attributes for explicit input transforms#69427
cexbrayat wants to merge 1 commit into
angular:mainfrom
cexbrayat:fix/signal-input-transform-static-attributes

Conversation

@cexbrayat

Copy link
Copy Markdown
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

This is a follow-up to #67997, which allowed explicit read generics with input transforms, such as input<boolean>(false, {transform: booleanAttribute}).

That fixed the declaration, but static template attributes like dismissible="true" and bare dismissible were still checked as strings against the read type.

What is the new behavior?

Allow the fallback write type to include static attribute strings so these template forms compile.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

This is a follow-up to angular#67997, which allowed explicit read generics with input transforms, such as `input<boolean>(false, {transform: booleanAttribute})`.

That fixed the declaration, but static template attributes like `dismissible="true"` and bare `dismissible` were still checked as strings against the read type. Allow the fallback write type to include static attribute strings so these template forms compile.
@pullapprove pullapprove Bot requested a review from atscott June 18, 2026 16:05
@angular-robot angular-robot Bot added the area: core Issues related to the framework runtime label Jun 18, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Issues related to the framework runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant