◐ Shell
clean mode source ↗

fix(core): make parent injector argument required in `createEnvironmentInjector` by AndrewKushnir · Pull Request #46397 · angular/angular

@AndrewKushnir added action: review

The PR is still awaiting reviews from at least one requested reviewer

area: core

Issues related to the framework runtime

target: patch

This PR is targeted for the next patch release

labels

Jun 16, 2022

atscott

…ntInjector`

Previously, the `createEnvironmentInjector` function allowed creating an instance of an EnvironmentInjector without providing a parent injector. This resulted in an injector instance, which was detached from the DI tree, thus having limited value. This commit updates the types of the `createEnvironmentInjector` function to make the parent injector a required argument.

pkozlowski-opensource

This was referenced

Jul 1, 2022