title: AngularJS - Set Default Value if no Value is Selected for Radio Buttons
body: <p>I have the following group of radio buttons: </p>
  
  <pre><code>&lt;div class="checkboxgroup" ng-repeat="p in priorities"&gt;
     &lt;input id="radio_{{ $index }}" ng-disabled="disable" type="radio" name="ShipPriority" ng-model="$parent.data.ShipPriority" value="{{ p.value }}" ng-change="UpdateHeader('ShipPriority', {{ p.value }})" /&gt;
     &lt;label for="radio_{{ $index }}"&gt;{{ p.value }}&lt;/label&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The values/labels are the numbers 1-5. As it is set up right now, there is no default value if a value has not previously been selected, simply no radio button is selected. I would like to set the default value equal to 5 if a previous value has not been selected. </p>