javascript - A string prefix in ng-class -
ng-class="{{'tabs-'+currentstyle.value}}" ng-class="'tabs-'{{currentstyle.value}}" ng-class="tabs-{{currentstyle.value}}"
i trying apply class based on value, tried of above , get
error: [$parse:syntax] syntax error: token 'undefined' not primary expression @ column null of expression [tabs-] starting @ [tabs-].
what doing wrong?
i want result class="tabs-currentstyle.value"
without having declare variable in scope
Comments
Post a Comment