I need to repeat a component inside another component, let's say:
Component A only accepts, inside its ng-content, a component of type B.
doing something like:
<component-a>
<ng-template ngFor [ngForOf]="items">
<component-B></component-B>
</ng-template>
</component-a>
or this:
<component-a>
<ng-container *ngFor="let item of items">
<component-B></component-B>
</ng-container>
</component-a>
does not work...
I can't modify component-a nor compoenent-B and these approaches doesn't render the component-B...
Any ideas how to overcome this?
Thanks.
PS: I may need to add multiple component-B for each item.