-
Notifications
You must be signed in to change notification settings - Fork 27k
feat(core): Allow bootstrapModule to configure NgZone in providers
#57060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
bootstrapModule to configure NgZone in providersbootstrapModule to configure NgZone in providers
9794ba1 to
63f2beb
Compare
e14ee7c to
b795adc
Compare
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.
b795adc to
77c46e9
Compare
…otstrapModule This commit adds the `ImagePerformanceWarning` to the common bootstrap code rather than only starting it when using `bootstrapApplication`.
77c46e9 to
70985b8
Compare
It no longer requires ngZone: 'noop' because NgZone can be configured in providers
alxhub
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A+ refactoring.
|
|
||
| import {Injector} from '../di/injector'; | ||
| import {EnvironmentInjector} from '../di/r3_injector'; | ||
| import {EnvironmentInjector, R3Injector} from '../di/r3_injector'; |
There was a problem hiding this comment.
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
| import {EnvironmentInjector, R3Injector} from '../di/r3_injector'; | |
| import {EnvironmentInjector} from '../di/r3_injector'; |
It no longer requires ngZone: 'noop' because NgZone can be configured in providers PR Close #57060
|
This PR was merged into the repository by commit 8098945. The changes were merged into the following branches: main |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
See individual commits