JSFiddle - React, Tailwind, and code Playground

by Varun Krishna P

HTML

<div ng-app="myApp" ng-controller="Ctrl">
    
    <a href="#" ng-click="clearCountry()" class="pull-right"> UnCheckAll</a> <input type="hidden" ng-model="clearCountryFlag">
    
   <div ng-repeat="choice in ['India','China','America']">
        <input type="checkbox" ng-model="country.chosen[choice]"> {{choice}}
    </div>
    
    {{country.chosen}}
</div>

JavaScript

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

function Ctrl($scope){
    $scope.clearCountry= function(){
        $scope.country = {chosen : {}};
    }
    $scope.clearCountry();
}