I'm trying to create a "container" component in Angular which contains other components and formats them / orders them in a predefined way (like a dashboard).
I would like to pass the components to the container as an input array like this:
<container
[inputComponents] = "['MapComponent', 'EventsListComponent', 'FileListComponent']"
>
</container>
My "container" component should show the Map and the Lists like a Dashboard with special formatting and so on.
I did already lots of research but couldn't find a good solution for this. I don't think passing angular components via input parameter is a good solution?
I found this on Stack Overflow which is very similar to my problem: Angular: Pass Component to a Component
But I don't want to change any of the already existent components to extend an abstract widget component. Is this really the only way to realize this?