title: Conditionally check radio in angular
body: <p>I have a radio group, a button and a boolean value.  When the button is clicked, if the boolean is true, check one radio button and if it false, check the other.  Not sure how to set up binding for something like that.</p>
  
  <h2>Edit</h2>
  
  <p>The situation is a little more complicated it turns out.</p>
  
  <p>The flow goes like this:</p>
  
  <ol>
   <li>Presented with 2 buttons one to Buy Now one to Buy in Installments</li>
   <li>
    Presented with an upsell
    <ol>
      <li>If you clicked buy now, add an "addon" sku to the order items hash</li>
      <li>If you clicked buy in installments add an "addon_plan" sku to the items hash</li>
    </ol>
   </li>
  </ol>
  
  <p>So the different states of the hash look like:</p>
  
  <pre><code>//base offer only
  order.items = {base_offer: 1}
  
  //base offer with payment plan
  order.items = {base_offer_plan: 1}
  
  //accessory kit only if base_offer_plan was not selected
  order.items = {accessory_kit: 1}
  
  //accessory kit with plan if user first chose base_offer_plan
  order.items = {accessory_kit_plan: 1}
  </code></pre>