I'm currently doing something like
<div *ngFor="let directive in listOfDirectives">
<directive-one *ngIf="directive == 'directive-one'"></directive-one>
<directive-two *ngIf="directive == 'directive-two'"></directive-two>
...
</div>
What I'd like to do is this however it doesn't work
<{{directive}} *ngFor="let directive = listofDirectives"></{{directive}}>
So is there a way to do this? For styling purposes i really need the to not be wrapped with a div