Posts by gjlacerda • 1 point
1 post
-
0
votes2
answers233
viewsA: How to use a $Scope variable within ng-class
Try it this way: <div ng-class="{'{{class}}': menu == '#background'}"> ... $scope.color = 'red'; $scope.class = 'text-' + color + '-6';…