ng click toggle class code example
Example: angular ng-click toggle class
$scope.toggle = false;
<button id="btn" ng-click="toggle = !toggle" ng-class="{'red' : toggle}">Change Class</button>
$scope.toggle = false;
<button id="btn" ng-click="toggle = !toggle" ng-class="{'red' : toggle}">Change Class</button>