I have the following code:
<a ng-class="{'text-{{color}}-6': menu == '#background'}" href="#background">
My Menu
</a:
It works, at first it adds the text-red-6 class to the element. But when I change the color of $scope
, ng-class
does not change the class.