Kelas sakelar klik Angular NG
$scope.toggle = false;
<button id="btn" ng-click="toggle = !toggle" ng-class="{'red' : toggle}">Change Class</button>
Wandering Wolf
$scope.toggle = false;
<button id="btn" ng-click="toggle = !toggle" ng-class="{'red' : toggle}">Change Class</button>