Has anyone encountered a challenge with a function related to Angular in their project? Here is a snippet of the code causing issues:
console.log(window.getComputedStyle(this.frontLayer.nativeElement).maxHeight);
And within the component template:
<div #frontLayer
[style.maxHeight]="maxHeight"
[style.height]="curHeight"
[style.minHeight]="minHeight">
The maxHeight
property is initialized in the ngOnInit lifecycle hook.
However, the result obtained appears unresolved and reads as follows:
calc(100% - 56px)
Does anyone have any suggestions on how to address this issue?
Thank you for your assistance.