Skip to content

Allow defining application providers in bootstrapModule#64354

Closed
atscott wants to merge 2 commits intoangular:mainfrom
atscott:appProviders
Closed

Allow defining application providers in bootstrapModule#64354
atscott wants to merge 2 commits intoangular:mainfrom
atscott:appProviders

Conversation

@atscott
Copy link
Copy Markdown
Contributor

@atscott atscott commented Oct 10, 2025

This commit adds applicationProviders to the bootstrapModule options
object. This allows specifying additional providers at the location of
bootstrap, which makes default providers much easier to accomplish.

Using this, we can refine the approach taken for downgrade_module to use
this more direct API rather than the additional provider variable dance.

(first commit is in a separate PR and is effectively rolled back by the second)

…dule

This fixes the code to retain ZoneJS by default in the providers for
downgradeModule when the `bootstrapModule` is used. Prior to this
change, the async `bootstrapModule`/`compileNgModuleFactory` could be
called multiple times through `downgradeModule` before
`bootstrapModuleFactory` got called and used the zone providers.

Note: marked refactor since this only applies to the -next release and
we shouldn't have this change in the changelog as a fix.
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: core Issues related to the framework runtime labels Oct 10, 2025
@ngbot ngbot bot added this to the Backlog milestone Oct 10, 2025
…options

This commit adds `applicationProviders` to the `bootstrapModule` options
object. This allows specifying additional providers at the location of
bootstrap, which makes default providers much easier to accomplish.

Using this, we can refine the approach taken for downgrade_module to use
this more direct API rather than the additional provider variable dance.
@atscott atscott marked this pull request as ready for review October 13, 2025 17:44
@pullapprove pullapprove bot requested review from JeanMeche and mmalerba October 13, 2025 17:44
Copy link
Copy Markdown
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed-for: public-api

@atscott atscott added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release labels Oct 13, 2025
@ngbot
Copy link
Copy Markdown

ngbot bot commented Oct 13, 2025

I see that you just added the action: merge label, but the following checks are still failing:
    failure status "google-internal-tests" is failing
    pending 2 pending code reviews

If you want your PR to be merged, it has to pass all the CI checks.

If you can't get the PR to a green state due to flakes or broken main, please try rebasing to main and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help.

@AndrewKushnir
Copy link
Copy Markdown
Contributor

This PR was merged into the repository. The changes were merged into the following branches:

AndrewKushnir pushed a commit that referenced this pull request Oct 13, 2025
…options (#64354)

This commit adds `applicationProviders` to the `bootstrapModule` options
object. This allows specifying additional providers at the location of
bootstrap, which makes default providers much easier to accomplish.

Using this, we can refine the approach taken for downgrade_module to use
this more direct API rather than the additional provider variable dance.

PR Close #64354
JeanMeche added a commit to JeanMeche/angular that referenced this pull request Oct 14, 2025
… migration

angular#64354 introduced the `applicationProviders` for `bootstrapModule`, this allows a simpler migration output.
JeanMeche added a commit to JeanMeche/angular that referenced this pull request Oct 15, 2025
… migration

PR angular#64354 introduced the `applicationProviders` for `bootstrapModule`, this allows a simpler migration output.
JeanMeche added a commit to JeanMeche/angular that referenced this pull request Oct 22, 2025
… migration

PR angular#64354 introduced the `applicationProviders` for `bootstrapModule`, this allows a simpler migration output.
crisbeto pushed a commit that referenced this pull request Oct 27, 2025
… migration

PR #64354 introduced the `applicationProviders` for `bootstrapModule`, this allows a simpler migration output.
crisbeto pushed a commit that referenced this pull request Oct 27, 2025
… migration

PR #64354 introduced the `applicationProviders` for `bootstrapModule`, this allows a simpler migration output.

(cherry picked from commit eec6669)
@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 Nov 13, 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 detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants