ng-class="{{'tabs-'+currentStyle.value}}"
ng-class="'tabs-'{{currentStyle.value}}"
ng-class="tabs-{{currentStyle.value}}"
My goal is to dynamically apply a class based on a value. I have experimented with the options above, but encountered this error:
Error: [$parse:syntax] Syntax Error: Token 'undefined' not a primary expression at column null of the expression [tabs-] starting at [tabs-].
What am I missing here?
All I want is for the result to be class="tabs-currentStyle.value"
without needing to introduce an additional variable in the scope.