I have a menu bar and action panel. A action panel is just simple div in which inside I want to display different components.
For example: User click button A -> display Component A in action panel; User click button B -> display Component B in action panel;
What is the best way to do this?
I thought to use ngswtich in my template, for example (pseudocode!).
<div id="action-panel">
<div [ngSwitch]="componentType">
<div *ngSwitchCase="userComponent">
<user-component></user-component>
</div>
</div>
</div>