I have a container where I load my grids based on the route. For example,
admin.component.html
<div class="admin-right-panel">
<div class="grid-style">
<router-outlet></router-outlet>
</div>
</div>
In the router-outlet, I will load my grid pages/components based on the route Here is the CSS for above HTML
admin.component.scss
.admin-right-panel {
height: 60vh;
}
So, there is an ask for me, where I need to increase this height when I load a specific page into the container.
Let's say I have components A, B, C and when I load B then I need the height to be 80vh
, but keep as 60vh
in the case of A, B.
Each component has it's own HTML
, SCSS
, TS
files. Is there a way I can implement this logic? Please suggest.