I'm getting an object from an API. It has an array which contains 2 types of objects, I have to loop over this array and render two different components depending on the object at each index.
Both types of components need @Input
s and @Output
s to work properly, so I can't use <ng-container>
like showing in this question.
What's the best way to implement something like this?