My objective is to dynamically bind the height of an angular component to a div element. I am experimenting with using template reference to access the height.
Is there a way to achieve this in a clean manner? I would like to implement it similar to the code snippet below.
<div [style.height.px]="section1.offsetHeight"></div>
<app-custom-tag #section1>
</app-custom-tag>
The goal is for the height of <div>
to match the height of <app-custom-tag>
Using CSS column layout is not an option in this case as these two elements are not positioned together.