Skip to content

[Feature Request] Automatic Inclusion of Component in Entry Components #28826

@oleersoy

Description

@oleersoy

🚀 feature request

Automatic inclusion / management of component in entry components.

Relevant Package

Angular/core angular/compiler

Description

When creating a component / host view as documented here:
https://medium.com/@ole.ersoy/creating-a-host-view-2dfc895a384b

We have to remember to include the component in the entry components. Ideally the Angular compile process would do a code scan and add this for us automatically when the code fits the pattern that requires this.

Or Angular just does away with entry components and builds in dynamic component support by default in all modules. I don't think it's going to add much weight, if any.

Describe the solution you'd like

Ideally we should not have to remember to do this step. Angular should just know how to make dynamic components.

Describe alternatives you've considered

Do the extra step, but this is not a DRY approach. For example if while refactoring someone removes the dynamic component creation from the module, they also have to remember to update the entry components array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtimefeatureIssue that requests a new featurefreq3: high

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions