Skip to content

fix(compiler): generate proper code for nullish coalescing in styling host bindings#53305

Closed
AndrewKushnir wants to merge 1 commit intoangular:mainfrom
AndrewKushnir:fix_53295
Closed

fix(compiler): generate proper code for nullish coalescing in styling host bindings#53305
AndrewKushnir wants to merge 1 commit intoangular:mainfrom
AndrewKushnir:fix_53295

Conversation

@AndrewKushnir
Copy link
Contributor

This commit fixes an issue where having an expression with nullish coalescing in styling host bindings leads to JS errors due to the fact that a declaration for a temporary variable was not included into the generated code.

Resolves #53295.

PR Type

What kind of change does this PR introduce?

  • Bugfix

Does this PR introduce a breaking change?

  • Yes
  • No

@AndrewKushnir AndrewKushnir added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release area: compiler Issues related to `ngc`, Angular's template compiler labels Dec 1, 2023
@ngbot ngbot bot modified the milestone: Backlog Dec 1, 2023
… host bindings

This commit fixes an issue where having an expression with nullish coalescing in styling host bindings leads to JS errors due to the fact that a declaration for a temporary variable was not included into the generated code.

Resolves angular#53295.
@AndrewKushnir AndrewKushnir added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Dec 1, 2023
@dylhunn
Copy link
Contributor

dylhunn commented Dec 1, 2023

This PR was merged into the repository by commit 77ac4cd.

dylhunn pushed a commit that referenced this pull request Dec 1, 2023
… host bindings (#53305)

This commit fixes an issue where having an expression with nullish coalescing in styling host bindings leads to JS errors due to the fact that a declaration for a temporary variable was not included into the generated code.

Resolves #53295.

PR Close #53305
@dylhunn dylhunn closed this in 77ac4cd Dec 1, 2023
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 1, 2024
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
… host bindings (angular#53305)

This commit fixes an issue where having an expression with nullish coalescing in styling host bindings leads to JS errors due to the fact that a declaration for a temporary variable was not included into the generated code.

Resolves angular#53295.

PR Close angular#53305
rlmestre pushed a commit to rlmestre/angular that referenced this pull request Jan 26, 2024
… host bindings (angular#53305)

This commit fixes an issue where having an expression with nullish coalescing in styling host bindings leads to JS errors due to the fact that a declaration for a temporary variable was not included into the generated code.

Resolves angular#53295.

PR Close angular#53305
amilamen pushed a commit to amilamen/angular that referenced this pull request Jan 26, 2024
… host bindings (angular#53305)

This commit fixes an issue where having an expression with nullish coalescing in styling host bindings leads to JS errors due to the fact that a declaration for a temporary variable was not included into the generated code.

Resolves angular#53295.

PR Close angular#53305
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: compiler Issues related to `ngc`, Angular's template compiler target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using null coalescing operator with style host binding leads to an error

3 participants

Comments