In my application, I have a parent component called "chat" with two child components - "sidebar" (which displays the user list) and "conversation detail" (which shows the chat with each user). The functionality I am aiming for is that when a user is clicked on in the sidebar, the chat window for that user should open on the right side, similar to how it works in WhatsApp web. Below is an example code snippet of how my components are structured:
Chat component (parent component)
<div class="container-fluid">
<div class="row">
<div class="col-5">
<app-sidebar></app-sidebar>
</div>
<div class="col-7">
<app-conversation-detail></app-conversation-detail>
</div>
</div>