How do I only show the Angular Component on a page, and hide everything else including the header and footer from the angular component? The header and footer are automatically placed in all our components, we don't even code for them in html.
Component Picture in Green Border
Using the following solution partially works, however sometimes the header and footer still show up few seconds, while the real component is loading.
:host{
background: #4285f4;
color:#fff;
position: fixed;
top:0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 100;
}
How to get Angular component to take full height of screen
This is the Product Component html:
<div class="whole-container">
<div class="product-data">
<div>{{product?.productNumber}}</div>
<div>{{product?.productName}}</div>
</div>
<div>
Hello
</div>
</div>