Currently using Angular 8, ended up with a code like this.
<div [style.height.px]="dynamicHeightComponent.offsetHeight">
</div>
<div #dynamicHeightComponent>
...
</div>
Is this a hit to performance, if it is, how can we get a better implementation.