1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html lang="en" ng-app>
     <head>
          <meta charset="utf-8" />
          <title>Angular Test #4</title>
          <script src="angular.min.js"></script>
     </head>
<body>

<div>
     <input type="checkbox" ng-model="yapp" />
     <input id="fullName" ng-disabled="!yapp" />

     <span ng-bind="yapp"></span>
     <button ng-disabled="!yapp" onclick="JavaScript:alert('hello');">Hi</button>
</div>

</body>
</html>