title: AngularJS Printing text if checkbox is checked
body: <p>I am trying to print text on the page in a <code>&lt;h1&gt;</code> tag depending on whether a check box is checked or not. </p>
  
  <pre><code>$scope.EmailMe = function(email) {
      if($scope.emailchecked == 1) {
          $scope.test = "emailSent";
      } else {
          $scope.test = "nothing";
      }
      }
  </code></pre>
  
  <p>HTML is : </p>
  
  <pre><code>        &lt;input type="checkbox" ng-model="emailchecked" ng-change="EmailMe(1)"&gt;
          &lt;h1&gt; @{{test}} &lt;/h1&gt;
  </code></pre>
  
  <p>I have the text printing but the checkbox is not being checked. or allowing for change please help :)</p>