Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="app">
<head>
  <meta charset=utf-8 />
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.21/angular.min.js"></script>
<meta name="description" content="Checkbox inside button" />
  </script>
  <title></title>
</head>
<body>
  <button ng-class="{active: active1}" ng-mousedown="active1 = !active1">
    <input type="checkbox" ng-checked="active1"/>
    Change ng-checked!
  </button>
</body>
</html>
 
.active {
  background: blue;
  color: white;
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
dmitrizpro
0viewers