JSFiddle - React, Tailwind, and code Playground

by nisham

HTML

<div ng-app="app" ng-controller="test">
      <input type="checkbox"  ng-checked="myScope=='Y'"  ng-model="myScope" value="passport" />
          <button ng-click=Uncheck()>UnCheck</button>
     
 </div>

JavaScript

angular.module('app', [])
  .controller('test', function($scope) {
      
      $scope.myScope='Y';
      $scope.Uncheck = function() {
          $scope.myScope='N';
          
      }
});