I am trying to create this dashboard and i want to know how to change one component when a menu link is clicked?

I split it in 3 components like that
<div id="wrapper">
<app-dashboard-menu></app-dashboard-menu>
<div id="content-wrapper" class="d-flex flex-column">
<div id="content">
<app-dashboard-topbar></app-dashboard-topbar>
<app-dashboard-content></app-dashboard-content>
</div>
</div>
</div>
i want to be know how can i add (onclick) to a menu item and change from to lets say and keep the same layout. Just to be able to change only dashboard content to any other component i create