JSFiddle - React, Tailwind, and code Playground

by madil1548

HTML

<script src="http://cdn.jsdelivr.net/angular.checklist-model/0.1.3/checklist-model.min.js"></script>
<div ng-app="sam">
    <div ng-controller="demo">
    <h2>
    Example of Angular Checkbox List
    </h2>
        <label ng-repeat="country in countryList"><input type="checkbox" checklist-model="selected.country" checklist-value="country" /> {{country.name}}<br/> </label>
        <br/>
        <p>
        Selection will show here
        </p>
        {{selected.country}}
</div>
</div>

JavaScript

angular.module('sam', ['checklist-model'])
    .controller('demo', function($scope) {
        $scope.countryList = [
    { name: 'America'},
    { name: 'England'},
    { name: 'Canada'},
    { name: 'Scotland'}
  ];
        $scope.selected = {
            country: []
        };      
    });