checklist model is not working
<pre><code>&lt;!doctype html&gt;
&lt;html ng-app="plunker"&gt;

&lt;head&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.js"&gt;&lt;/script&gt;
  &lt;script src="example.js"&gt;&lt;/script&gt;
  &lt;script src="checklist-model.js"&gt;&lt;/script&gt;
  &lt;link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet"&gt;
&lt;/head&gt;

&lt;body&gt;

  &lt;div ng-controller="DemoCtrl"&gt;
    &lt;label ng-repeat="role in roles"&gt;
      &lt;input type="checkbox" checklist-model="user.roles" checklist-value="role"&gt; {{role.text}}
    &lt;/label&gt;
    &lt;button ng-click="user.roles=[];" style="margin-right: 10px"&gt;Uncheck all&lt;/button&gt;
    &lt;button ng-click="checkNth(0)"&gt;Check first&lt;/button&gt;
    &lt;button ng-click="checkAll()"&gt;Check all&lt;/button&gt;

    &lt;pre&gt;{{ user.roles | json }}&lt;/pre&gt;
  &lt;/div&gt;
  &lt;script&gt;
    angular.module('plunker', ['checklist-model']);
    var DemoCtrl = function($scope) {
      $scope.roles = [{
        id: 1,
        text: 'guest'
      }, {
        id: 2,
        text: 'user'
      }, {
        id: 3,
        text: 'customer'
      }, {
        id: 4,
        text: 'admin'
      }];
      $scope.user = {
        roles: [$scope.roles[1]]
      };

      $scope.checkAll = function() {
        // this first method doesn't work
        //$scope.user.roles = $scope.roles; 

        // this one work
        for (i = 0; i &lt; $scope.roles.length; i++)
          $scope.checkNth(i);
      };

      $scope.checkNth = function(i) {
        console.log("first", JSON.stringify($scope.user.roles));
        $scope.user.roles.splice(i, $scope.user.roles.length);
        console.log("second", JSON.stringify($scope.user.roles));
        $scope.user.roles.push($scope.roles[i])
        console.log("third", JSON.stringify($scope.user.roles));
      }
    };
  &lt;/script&gt;
&lt;/body&gt;

&lt;/html&gt;
</code></pre>

<ul>
<li>Here the checklist-model not woking as i expected.</li>
<li>im new to angular js help me.</li>
<li>is there any need to add CDN?.</li>
</ul>