I have a very simple ngFor
<div *ngFor="let service of loadedServices; let i = index;">
<div>
</div>
</div>
Depending on the service I have to load a different component. I've seen that is possible with ComponentFactoryResolver (https://angular.io/guide/dynamic-component-loader#targetText=Dynamic%20component%20loadinglink&targetText=This%20makes%20it%20impractical%20to,API%20for%20loading%20components%20dynamically.)
But the example shows how to add a single component to a single element in the HTML.
How can I add component to each item created by the ngFor?
Thanks to all