-
Notifications
You must be signed in to change notification settings - Fork 26.6k
Description
🚀 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.