Due to some platform restrictions, there I can't use Routing - different urls to navigate to different components.
In other words, there is only http://localhost.com/default
I manage to put all the child components in the AppComponent as a parent and use variables to indicate which child component to hide and show by ui actions in order to manipulate the layout.
<app-user-panel
[hidden]="!showUser"
(closed)="onUserPanelClosed($event)"
></app-user-panel>
<app-items-panel
[hidden]="!showItems"
(closed)="onItemsPanelClosed($event)"
></app-items-panel>
As there are massive components are put together, the code in ts file is messy.
I am wondering if there is any better approach of NOT using booleans and ngIf to show or hide child components?
RESOLUTION 1: Does Routing have an advanced feature to navigate to different components on same url?
RESULUTION 2: Use Routing params?