How to insert component in Angular 2+ dynamically in this situation?
<div *ngFor="let component of components">
</div>
Where components is an array of strings, one string is a single component name.
How to do this in such a situation? I want all components from array to be shown.
This is an example array of components:
components: ['app-item-search-sidebar','app-item-list','app-item-create','app-item-change'];
ViewContainerRef, and decorators such as@ContentChildto do so. But without an actual array I can't provide more help.