In Angular I can write next :
class="{{ DayTypesClasses[request.typeId] }}"
which will set css-class according to expression value
But I've found that ng-bind
can make the same but also save some time for this binding.
I've tried to use ng-bind
in class, but it won't work.
class="ng-bind : 'DayTypesClasses[request.typeId]'"
class="ng-bind = 'DayTypesClasses[request.typeId]'"
class="ng-bind : DayTypesClasses[request.typeId]"
class="ng-bind:{{DayTypesClasses[request.typeId]}}"
How correctly should I use ng-bind
in class-attribute?
Link on documentation of ng-bind
doesn't help me :(