My ultimate goal is to just have a custom container component with a dynamic list of custom card components that are individually accessible (not as a single entity using ng-content).
<custom-card-holder>
<custom-card></custom-card>
<custom-card></custom-card>
...
<custom-card></custom-card>
</custom-card-holder>
Ideally I just grab the child components with ContentChildren query and put each one into a styled div inside the custom card holder.
The displaying each content child individually in the styled div to get it to fit nicely in the holder.
I have tried using TemplateOutlet and a few other odds and ends but the ComponentOutlet seems the most promising.
I would like to avoid any extra clutter on the code shown above. I understand the data can just be input and the component can be used inside without any transclusion but that just means a more complex interface for others to figure out.
where the child components are nested rather than created in the parent component. The only difference is its in angular 4 with custom components. The children can all be the same type too – rjustin Nov 28 '17 at 04:35