My main objective is to create a unique container component with a dynamic list of customized card components that can be accessed individually (instead of as a group using ng-content).
<custom-card-holder>
<custom-card></custom-card>
<custom-card></custom-card>
...
<custom-card></custom-card>
</custom-card-holder>
My goal is to use ContentChildren query to fetch each child component and place it inside a styled div within the custom card holder.
The aim is to display each content child in its own styled div to ensure it fits neatly inside the holder.
I have experimented with TemplateOutlet and some other options, but ComponentOutlet seems like the most promising choice.
I want to keep the code above clean without any unnecessary clutter. I realize that data can simply be input and the component used without transclusion, but this could make the interface more complex for others to understand.