title: How to toggle a Boolean on checkbox in Angularjs
body: <p>I am working on the following code. How can I toggle the state of the Boolean, here <code>isChecked</code> through controller in Angularjs checkbox?</p>
  
  <pre><code>&lt;body ng-app="app"&gt;
    &lt;div ng-controller="checkController"&gt;
        &lt;input type="checkbox" ng-model="choice" name="item" ng-change="changeSta(choice)" /&gt; Add New Item
    &lt;/div&gt;
  &lt;/body&gt;
  
  &lt;script&gt;
  var app = angular.module('app', []);
  app.controller('checkController', function($scope) {
     var isChecked = false;
     $scope.changeSta = function() {
       //isChecked = true;
    };
  
  });
  
  &lt;/script&gt;
  </code></pre>