Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Support entry component #936

Merged
merged 2 commits into from
May 21, 2018
Merged

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented May 18, 2018

Summary

Add entryComponent support on @schematics/angular/component. Fixes angular/angular-cli#7749

Motivation

We use @angular/cli to generate some components and then we use a compiler to imperatively load these components by type, therefore we should add the components to entryComponents. While one can copy and paste between declarations and entryComponents, it will be of convenience to have this switch right in angular-cli.

I also do some minor refactors on the addDeclarationToNgModule due to duplicated codes.

@JLHwung JLHwung requested review from Brocco and hansl as code owners May 18, 2018 07:40
@JLHwung JLHwung force-pushed the support-entry-component branch from c8fba38 to 9d8a5e5 Compare May 18, 2018 10:09
Copy link
Contributor

@Brocco Brocco left a comment

Choose a reason for hiding this comment

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

FYI, this could be a single feat commit rather than 2 separate commits.

@filipesilva filipesilva merged commit 92cfd97 into angular:master May 21, 2018
@JLHwung JLHwung deleted the support-entry-component branch May 22, 2018 01:35
@JLHwung
Copy link
Contributor Author

JLHwung commented May 22, 2018

Sure, you can squash into one feat commit. Personally I am lean to small commit granularity since it is easier to compose into bigger commit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants