title: Angular Checkboxes not Binding Properly
body: <p>Having trouble figuring out this problem involving an Angular checkbox form generated from an API.</p>
  
  <p>I can create a checkboxes but two problems:  The checkedness of the boxes does not match the values in what's coming from the API, and when I click the checkboxes the name value changes from its default to "true" or "false."  Have seen other similar questions but can't get this to work. <a href="http://plnkr.co/edit/1HGMr7QUpKO1MVCOUUT4?p=preview" rel="nofollow">Plunk here</a> and source code below:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html ng-app="checkTest"&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8"&gt;
          &lt;title&gt;Angular Multiple Checkboxes&lt;/title&gt;
          &lt;style&gt;
              label {display:block;}
          &lt;/style&gt;
          &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular.js"&gt;&lt;/script&gt;
          &lt;script type="text/javaScript"&gt;
          var jsonObj = {"fruits":[
              {
                "name": "Apple",
                "desc": "abcdefg",
                "selected": "true",
                "status": "Created"
              },
              {
                "name": "Broccoli",
                "desc": "abcdefg",
                "selected": "true",
                "status": "None"
              },
              {
                "name": "Cucumber",
                "desc": "abcdefg",
                "selected": "false",
                "status": "Created"
              },
              {
                "name": "Daikon",
                "desc": "abcdefg",
                "selected": "false",
                "status": "None"
              }
        ]};
              var fruitsObj = jsonObj.fruits;
          &lt;/script&gt;
  
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;div ng-controller="MainCtrl"&gt;
  
              &lt;label ng-repeat="fruit in fruits"&gt;
                  &lt;input type="checkbox" name="fruitSelect" ng-model="fruit.name" ng-value="{{fruit.name}}" ng-checked="fruit.selected"&gt; {{fruit.name}}
              &lt;/label&gt;
              &lt;p&gt;Services: {{fruits}}&lt;/p&gt;
          &lt;/div&gt;
  
          &lt;script type="text/javaScript"&gt;
  
              var app = angular.module('checkTest', []);
  
              app.controller('MainCtrl', function($scope) {
                  $scope.fruits = fruitsObj;
              });
  
          &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>