I am trying to assign a height class like this:
<div class="getScrollViewHeight()">
And my method looks like this:
getScrollViewHeight(): string {
return 'h-'+this.scrollViewHeightPercentage;
}
What would be the correct way to do this? And can I use ngClass here?
ngClassFor Eg. [ngClass]="{'text-success':true}"