You can just use
<div class="{{ 'h-' + scrollViewHeightPercentage }}">
As a sidenote, using functions in your template can potentially mean that it is called very often, depending on how often angular has to check for changes. You should avoid calling functions in your template.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…