title: AngularJS - Ng-repeat with radio buttons and boolean value
body: <p>I have an array of <code>Book</code>-objects, each with the <code>boolean</code> property <code>Favorite</code>. Only one of the books has Favorite set to <code>true</code>.</p>
  
  <p>I'm displaying these books using <code>ng-repeat</code>, and I want to be able to set the favorite book with radio buttons. However, even though the correct radio button is selected upon page load, the model doesn't update the boolean values when I select a different radio button. </p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;ul&gt;
      &lt;li ng-repeat="book in vm.Books"&gt;
          {{book.Name}}
          &lt;input name="book" type="radio" ng-model="book.Favorite" ng-value="book.Favorite" /&gt; 
      &lt;/li&gt;
  &lt;ul&gt;
  </code></pre>
  
  <p>How do I update the model with the correct <code>Favorite</code>-value based on the checked radio button?</p>