Skip to content

feat(core): Allow bootstrapModule to configure NgZone in providers - #57060

Closed
atscott wants to merge 4 commits into
angular:mainfrom
atscott:bootstrapModuleNgZoneInProviders
Closed

atscott wants to merge 4 commits into
angular:mainfrom
atscott:bootstrapModuleNgZoneInProviders

Conversation

@atscott

@atscott atscott commented Jul 19, 2024 •

Copy link
Copy Markdown
Contributor

See individual commits

@angular-robot angular-robot Bot added the area: core Issues related to the framework runtime label Jul 19, 2024
@ngbot ngbot Bot added this to the Backlog milestone Jul 19, 2024
@atscott atscott changed the title fix(core): Allow bootstrapModule to configure NgZone in providers feat(core): Allow bootstrapModule to configure NgZone in providers Jul 19, 2024
@atscott
atscott force-pushed the bootstrapModuleNgZoneInProviders branch from 9794ba1 to 63f2beb Compare July 19, 2024 23:09
@angular-robot angular-robot Bot added the detected: feature PR contains a feature commit label Jul 19, 2024
@atscott
atscott force-pushed the bootstrapModuleNgZoneInProviders branch 4 times, most recently from e14ee7c to b795adc Compare July 22, 2024 21:05
atscott added 2 commits July 22, 2024 14:14
This commit allows configuring `NgZone` through the providers for
`bootstrapModule`. Prior to this change, developers had to configure
`NgZone` in the `BootstrapOptions`.
…ion and bootstrapModule

This commit de-duplicates the code for bootstrapping between
`bootstrapApplication` and `bootstrapModule`. A majority of the
bootstrap code was identical between the two, with some minor
differences that can be handled with a function overload.
@atscott
atscott force-pushed the bootstrapModuleNgZoneInProviders branch from b795adc to 77c46e9 Compare July 22, 2024 21:15
@atscott
atscott marked this pull request as ready for review July 23, 2024 15:17
@atscott

atscott commented Jul 23, 2024

Copy link
Copy Markdown
Contributor Author

Green TGP

…otstrapModule

This commit adds the `ImagePerformanceWarning` to the common bootstrap
code rather than only starting it when using `bootstrapApplication`.
@atscott
atscott force-pushed the bootstrapModuleNgZoneInProviders branch from 77c46e9 to 70985b8 Compare July 23, 2024 15:18
It no longer requires ngZone: 'noop' because NgZone can be configured in providers
@atscott atscott added the target: minor This PR is targeted for the next minor release label Jul 23, 2024
@angular-robot angular-robot Bot added the area: docs Related to the documentation label Jul 23, 2024

@alxhub alxhub left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A+ refactoring.

@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Jul 26, 2024

import {Injector} from '../di/injector';
import {EnvironmentInjector} from '../di/r3_injector';
import {EnvironmentInjector, R3Injector} from '../di/r3_injector';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Q: Isn't this a leftover ? - I do not see where R3Injector is being used in this file

Suggested change
import {EnvironmentInjector, R3Injector} from '../di/r3_injector';
import {EnvironmentInjector} from '../di/r3_injector';

thePunderWoman pushed a commit that referenced this pull request Jul 30, 2024
…ion and bootstrapModule (#57060)

This commit de-duplicates the code for bootstrapping between
`bootstrapApplication` and `bootstrapModule`. A majority of the
bootstrap code was identical between the two, with some minor
differences that can be handled with a function overload.

PR Close #57060
thePunderWoman pushed a commit that referenced this pull request Jul 30, 2024
…otstrapModule (#57060)

This commit adds the `ImagePerformanceWarning` to the common bootstrap
code rather than only starting it when using `bootstrapApplication`.

PR Close #57060
thePunderWoman pushed a commit that referenced this pull request Jul 30, 2024
It no longer requires ngZone: 'noop' because NgZone can be configured in providers

PR Close #57060
@thePunderWoman

Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit 8098945.

The changes were merged into the following branches: main

@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 Aug 30, 2024
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 area: docs Related to the documentation 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.

4 participants