Skip to content

fix(core): ViewProviders are injected into projected content if new flow-syntax is used#68028

Open
aparzi wants to merge 1 commit intoangular:mainfrom
aparzi:fix-view-providers-inject-with-new-control-flow
Open

fix(core): ViewProviders are injected into projected content if new flow-syntax is used#68028
aparzi wants to merge 1 commit intoangular:mainfrom
aparzi:fix-view-providers-inject-with-new-control-flow

Conversation

@aparzi
Copy link
Copy Markdown
Contributor

@aparzi aparzi commented Apr 3, 2026

The change limits access to viewProviders to components only, isolating control flow and restoring proper encapsulation of ng-content.

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?

ViewProviders are injected into projected content if new flow-syntax is used

Issue Number: #63312

What is the new behavior?

ViewProviders correct for new control-flow syntax

Does this PR introduce a breaking change?

  • Yes
  • No

…low-syntax is used

Prevent viewProviders from leaking into projected content when using new control flow syntax

Fixed angular#63312
@pullapprove pullapprove bot requested a review from atscott April 3, 2026 22:26
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Apr 3, 2026
@ngbot ngbot bot added this to the Backlog milestone Apr 3, 2026
@atscott atscott added the requires: TGP This PR requires a passing TGP before merging is allowed label Apr 3, 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 requires: TGP This PR requires a passing TGP before merging is allowed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants