Skip to content

refactor(core): add ApplicationRef.prototype.bootstrapImpl with injector parameter#60622

Closed
dgp1130 wants to merge 1 commit intoangular:mainfrom
dgp1130:app-ref-injector
Closed

refactor(core): add ApplicationRef.prototype.bootstrapImpl with injector parameter#60622
dgp1130 wants to merge 1 commit intoangular:mainfrom
dgp1130:app-ref-injector

Conversation

@dgp1130
Copy link
Copy Markdown
Contributor

@dgp1130 dgp1130 commented Mar 29, 2025

This allows any components individually bootstrapped to inherit from a unique Injector. This is useful when bootstrapping multiple root components with different providers.

Blocking cl/741690539.

@dgp1130 dgp1130 added action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime core: bootstrap target: minor This PR is targeted for the next minor release labels Mar 29, 2025
@dgp1130 dgp1130 requested a review from AndrewKushnir March 29, 2025 01:09
@ngbot ngbot bot added this to the Backlog milestone Mar 29, 2025
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Mar 29, 2025
@angular-robot angular-robot bot removed the detected: feature PR contains a feature commit label Mar 31, 2025
@dgp1130 dgp1130 changed the title feat(core): add injector parameter to ApplicationRef.prototype.bootstrap refactor(core): add ApplicationRef.prototype.ɵbootstrap with injector parameter Mar 31, 2025
@dgp1130 dgp1130 force-pushed the app-ref-injector branch from 54baf5a to a520ef6 Compare April 1, 2025 00:16
@dgp1130 dgp1130 changed the title refactor(core): add ApplicationRef.prototype.ɵbootstrap with injector parameter refactor(core): add ApplicationRef.prototype.bootstrapImpl with injector parameter Apr 1, 2025
@dgp1130 dgp1130 force-pushed the app-ref-injector branch from a520ef6 to bd0e458 Compare April 1, 2025 00:17
@AndrewKushnir AndrewKushnir removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Apr 1, 2025
@dgp1130 dgp1130 added target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker and removed target: minor This PR is targeted for the next minor release labels Apr 1, 2025
thePunderWoman pushed a commit that referenced this pull request Apr 1, 2025
…`injector` parameter (#60622)

This allows any components individually bootstrapped to inherit from a unique `Injector`. This is useful when bootstrapping multiple root components with different providers.

For now, the function is private while we explore potential designs to consolidate it with the existing `ApplicationRef.prototype.bootstrap` method.

PR Close #60622
@thePunderWoman
Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit 7cb8639.

The changes were merged into the following branches: main, 19.2.x

thePunderWoman added a commit to thePunderWoman/angular that referenced this pull request Apr 1, 2025
thePunderWoman added a commit that referenced this pull request Apr 1, 2025
…with an `injector` parameter (#60622)" (#60669)

This reverts commit 7cb8639.

PR Close #60669
thePunderWoman added a commit that referenced this pull request Apr 1, 2025
…with an `injector` parameter (#60622)" (#60669)

This reverts commit 7cb8639.

PR Close #60669
@thePunderWoman thePunderWoman reopened this Apr 1, 2025
@thePunderWoman thePunderWoman added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: merge The PR is ready for merge by the caretaker labels Apr 1, 2025
@thePunderWoman
Copy link
Copy Markdown
Contributor

thePunderWoman commented Apr 1, 2025

@dgp1130 We unfortunately had to revert this. The test is broken post merge. The failure was that the Injector symbol was not found in the test. It failed both main and patch.

@dgp1130
Copy link
Copy Markdown
Contributor Author

dgp1130 commented Apr 1, 2025

@jessicajaniuk can you link me to the test failure? Not sure what would be going on here post-merge that would cause a failure.

@thePunderWoman
Copy link
Copy Markdown
Contributor

@dgp1130 I think you'll see it if you rebase first. Can you give that a try?

@dgp1130 dgp1130 force-pushed the app-ref-injector branch from bd0e458 to 5c2248f Compare April 1, 2025 17:23
@angular-robot angular-robot bot removed the area: core Issues related to the framework runtime label Apr 1, 2025
@ngbot ngbot bot removed this from the Backlog milestone Apr 1, 2025
@thePunderWoman thePunderWoman added the area: core Issues related to the framework runtime label Apr 2, 2025
@ngbot ngbot bot added this to the Backlog milestone Apr 2, 2025
@dgp1130 dgp1130 force-pushed the app-ref-injector branch from 5c2248f to d49590d Compare April 2, 2025 17:40
@angular-robot angular-robot bot removed the area: core Issues related to the framework runtime label Apr 2, 2025
@ngbot ngbot bot removed this from the Backlog milestone Apr 2, 2025
…`injector` parameter

This is a roll forward of commit d5a8a1c. Nothing is meaningfully different, as we're trying again to see if the CI failure is reproducible.
@dgp1130 dgp1130 force-pushed the app-ref-injector branch from d49590d to da970d1 Compare April 2, 2025 18:00
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Apr 2, 2025
@ngbot ngbot bot added this to the Backlog milestone Apr 2, 2025
@dgp1130 dgp1130 added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Apr 2, 2025
@atscott
Copy link
Copy Markdown
Contributor

atscott commented Apr 3, 2025

This PR was merged into the repository by commit 2348f26.

The changes were merged into the following branches: main, 19.2.x

@atscott atscott closed this in 2348f26 Apr 3, 2025
atscott pushed a commit that referenced this pull request Apr 3, 2025
…`injector` parameter (#60622)

This is a roll forward of commit d5a8a1c. Nothing is meaningfully different, as we're trying again to see if the CI failure is reproducible.

PR Close #60622
@dgp1130 dgp1130 deleted the app-ref-injector branch April 3, 2025 22:40
@angular-automatic-lock-bot
Copy link
Copy Markdown

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 May 4, 2025
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: core Issues related to the framework runtime core: bootstrap target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants