Skip to content

feat(common): support NgModule as an input to the NgComponentOutlet#44815

Closed
AndrewKushnir wants to merge 1 commit intoangular:masterfrom
AndrewKushnir:factoryless_ng_component_outlet
Closed

feat(common): support NgModule as an input to the NgComponentOutlet#44815
AndrewKushnir wants to merge 1 commit intoangular:masterfrom
AndrewKushnir:factoryless_ng_component_outlet

Conversation

@AndrewKushnir
Copy link
Copy Markdown
Contributor

@AndrewKushnir AndrewKushnir commented Jan 25, 2022

This commit updates the logic of the NgComponentOutlet class to allow passing an NgModule as an input instead of passing NgModule factory.

PR Type

What kind of change does this PR introduce?

  • Feature

Does this PR introduce a breaking change?

  • Yes
  • No

@AndrewKushnir AndrewKushnir added feature Label used to distinguish feature request from other issues state: WIP area: core Issues related to the framework runtime core: dynamic view creation target: minor This PR is targeted for the next minor release labels Jan 25, 2022
@ngbot ngbot bot modified the milestone: Backlog Jan 25, 2022
@AndrewKushnir AndrewKushnir force-pushed the factoryless_ng_component_outlet branch from 5da09d5 to 36fcbef Compare January 28, 2022 00:27
@AndrewKushnir AndrewKushnir force-pushed the factoryless_ng_component_outlet branch 3 times, most recently from 9cd4d66 to c80e0ad Compare January 30, 2022 19:40
@AndrewKushnir
Copy link
Copy Markdown
Contributor Author

Global Presubmit.

@AndrewKushnir AndrewKushnir force-pushed the factoryless_ng_component_outlet branch from c80e0ad to 5bdf7fd Compare January 31, 2022 00:26
@AndrewKushnir AndrewKushnir requested a review from alxhub January 31, 2022 00:54
@AndrewKushnir AndrewKushnir added action: review The PR is still awaiting reviews from at least one requested reviewer and removed state: WIP labels Jan 31, 2022
@AndrewKushnir AndrewKushnir marked this pull request as ready for review January 31, 2022 00:55
@AndrewKushnir AndrewKushnir added area: common Issues related to APIs in the @angular/common package and removed area: core Issues related to the framework runtime labels Jan 31, 2022
Copy link
Copy Markdown
Contributor

@atscott atscott 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

@pullapprove pullapprove bot requested a review from alxhub January 31, 2022 22:14
This commit updates the logic of the `NgComponentOutlet` class to allow passing an `NgModule` as an input instead of passing an `NgModule` factory.

DEPRECATED:

The `ngModuleFactory` input of the `NgComponentOutlet` directive is deprecated in favor of a newly added `ngModule` input. The `ngModule` input accepts references to the NgModule class directly, without the need to resolve module factory first.
@AndrewKushnir AndrewKushnir force-pushed the factoryless_ng_component_outlet branch from 5bdf7fd to b202dff Compare January 31, 2022 22:15
@AndrewKushnir AndrewKushnir changed the title feat(core): support NgModule as an input to the NgComponentOutlet feat(common): support NgModule as an input to the NgComponentOutlet Jan 31, 2022
Copy link
Copy Markdown
Contributor

@jessicajaniuk jessicajaniuk left a comment

Choose a reason for hiding this comment

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

LGTM 🍪

reviewed-for: public-api

Copy link
Copy Markdown
Contributor

@dylhunn dylhunn 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

@jessicajaniuk jessicajaniuk removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Feb 1, 2022
@jessicajaniuk jessicajaniuk added action: presubmit The PR is in need of a google3 presubmit action: merge The PR is ready for merge by the caretaker and removed action: presubmit The PR is in need of a google3 presubmit labels Feb 1, 2022
@jessicajaniuk
Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit c89cf63.

@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 Mar 4, 2022
josmar-crwdstffng pushed a commit to josmar-crwdstffng/angular that referenced this pull request Apr 8, 2022
…ngular#44815)

This commit updates the logic of the `NgComponentOutlet` class to allow passing an `NgModule` as an input instead of passing an `NgModule` factory.

DEPRECATED:

The `ngModuleFactory` input of the `NgComponentOutlet` directive is deprecated in favor of a newly added `ngModule` input. The `ngModule` input accepts references to the NgModule class directly, without the need to resolve module factory first.

PR Close angular#44815
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: common Issues related to APIs in the @angular/common package core: dynamic view creation feature Label used to distinguish feature request from other issues target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants