Skip to content

Conversation

@AndrewKushnir
Copy link
Contributor

This commit refactors the NgModuleRef implementation to drop functions required by the EnvironmentInjector interface. Previously the idea was that the NgModuleRef can act as an Injector to facilitate easier transition to standalone. However, from the mental model perspective, the NgModuleRef has the injector field, which is the correct injector reference and can be used is needed as an EnvironmentInjector.

PR Type

What kind of change does this PR introduce?

  • Refactoring (no functional changes, no api changes)

Does this PR introduce a breaking change?

  • Yes
  • No

@AndrewKushnir 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: rc This PR is targeted for the next release-candidate labels Jul 19, 2022
@AndrewKushnir AndrewKushnir requested review from alxhub and atscott July 19, 2022 21:34
@ngbot ngbot bot added this to the Backlog milestone Jul 19, 2022
…interface

This commit refactors the `NgModuleRef` implementation to drop functions required by the `EnvironmentInjector` interface. Previously the idea was that the `NgModuleRef` can act as an Injector to facilitate easier transition to standalone. However, from the mental model perspective, the `NgModuleRef` has the `injector` field, which is the correct injector reference and can be used is needed as an `EnvironmentInjector`.
@AndrewKushnir AndrewKushnir force-pushed the ng_module_ref_cleanup branch from 1dad92c to fca66f5 Compare July 19, 2022 22:02
@AndrewKushnir
Copy link
Contributor Author

Presubmit (note: this change would also need a TGP).

@AndrewKushnir
Copy link
Contributor Author

Global Presubmit.

@AndrewKushnir AndrewKushnir added action: global presubmit The PR is in need of a google3 global presubmit action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer action: global presubmit The PR is in need of a google3 global presubmit labels Jul 20, 2022
@AndrewKushnir AndrewKushnir removed the request for review from alxhub July 20, 2022 15:36
@AndrewKushnir
Copy link
Contributor Author

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

AndrewKushnir added a commit that referenced this pull request Jul 20, 2022
…interface (#46896)

This commit refactors the `NgModuleRef` implementation to drop functions required by the `EnvironmentInjector` interface. Previously the idea was that the `NgModuleRef` can act as an Injector to facilitate easier transition to standalone. However, from the mental model perspective, the `NgModuleRef` has the `injector` field, which is the correct injector reference and can be used is needed as an `EnvironmentInjector`.

PR Close #46896
AndrewKushnir pushed a commit that referenced this pull request Jul 20, 2022
AndrewKushnir added a commit that referenced this pull request Jul 20, 2022
…interface (#46896)

This commit refactors the `NgModuleRef` implementation to drop functions required by the `EnvironmentInjector` interface. Previously the idea was that the `NgModuleRef` can act as an Injector to facilitate easier transition to standalone. However, from the mental model perspective, the `NgModuleRef` has the `injector` field, which is the correct injector reference and can be used is needed as an `EnvironmentInjector`.

PR Close #46896
@angular-automatic-lock-bot
Copy link

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 20, 2022
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 target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants