I have angular app with 3 nested components: App Component Inside the App component there is the tabs Component Inside the tabs component I have tabs
In order to give this components full height of the screen, I needed to go to each one of the components styles and to give it height: inherit
or height: 100%
, otherwise the nested component is not taking the full height of the page even though its parent have the full height.
My styles.scss
:
html, body{
height: 100vh;
margin: 0px;
}
app-root {
display: block;
height: 100%;
}
What is the correct approach, how to fix this problem correctly? Thanks