With the following html:
<div [ngSwitch]="type">
<my-component-a *ngSwitchCase="'A'"></my-component-a>
<my-component-b *ngSwitchCase="'B'"></my-component-b>
<my-component-c *ngSwitchCase="'C'"></my-component-c>
<my-component-d *ngSwitchDefault></my-component-d>
</div>
How do I get a reference to the chosen component inside the ts code? e.g.
public getChosenComponent(): MyComponentBase {
return ???;
}