title: Assigning ng-model to checkboxes generated by ng-repeat
body: <p>I have set up a json containing a list of countries with an ID and Country code attached:</p>
  
  <p>It looks like this:</p>
  
  <pre><code>$scope.countries = [
    {"name":"Afghanistan","id":"AFG","country-code":"004"},
    {"name":"Åland Islands","id":"ALA","country-code":"248"},
    {"name":"Albania","id":"ALB","country-code":"008"},
    {"name":"Algeria","id":"DZA","country-code":"012"}
  ]
  </code></pre>
  
  <p>I then use the <code>ng-repeat</code> directive to create checkbox inputs for every country.</p>
  
  <pre><code>&lt;div ng-repeat="country in countries"&gt;
        &lt;label&gt;&lt;input type="checkbox" ng-model="{{country.id}}" ng-true-value="'{{country.name}}'" ng-false-value="''"&gt;{{country.name}}&lt;/label&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>However when I run the code I only get the following to display:</p>
  
  <p>Location
  checkbox here <code>{{country.name}}</code></p>
  
  <p>If I remove the <code>ng-model</code> part of the repeat my checkboxes generate fine but I need a unique <code>ng-model</code> to be attached to every checkbox</p>
  
  <pre><code>ng-model="{{country.id}}"
  </code></pre>
  
  <p>How would I go about attaching a unique <code>ng-model</code> value?</p>
  
  <p>This answer (<a href="https://stackoverflow.com/questions/22387326/generate-ng-model-inside-ng-repeat">Generate ng-model inside ng-repeat</a>) does not provide a unique <code>ng-model</code> value</p>