Angular: Empty Fiddle

http://angularjs.org/

by Ravindra Athreya

HTML

<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<div ng-controller="MyCtrl">
  Hello, {{name}}!
    <input type="checkbox" ng-model="student.isSelected"/>
    <button ng-disabled="!student.isSelected" >enable/disable</button>
</div>

JavaScript

var myApp = angular.module('myApp',[]);



function MyCtrl($scope) {
    $scope.name = 'Superhero';
    $scope.student = {isselected: false};
}