title: How to bind single checkbox value with AngularJS Controller
body: <p>I have checked question <a href="https://stackoverflow.com/questions/14514461/how-to-bind-to-list-of-checkbox-values-with-angularjs">How to bind to list of checkbox values with AngularJS</a>. But this question explains list of arrays and best ways to handle it in Angular controller.</p>
  
  <pre><code>&lt;input type='checkbox' name="filter" checked&gt;
  </code></pre>
  
  <p>How can we bind value to checkbox to have value as modal 0 when unchecked and 1 when checked? What should be in HTML and Controller?</p>
  
  <pre><code>$scope.filter = 0;
  </code></pre>