Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
change css
<!doctype html>
<html lang="en" ng-app>
<meta charset="UTF-8">
.menu-disabled-true {
color: gray;
<div ng-controller="DeathrayMenuController">
<li class="menu-disabled-{{isDisabled}}" ng-click="stun()">Stun</li>
<script type="text/javascript" src="angular.min.js"></script>
<script type="text/javascript" src="main.js"></script>
function DeathrayMenuController($scope) {
$scope.isDisabled = false;
$scope.stun = function() {
$scope.isDisabled = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment