title: Selecting default value in radio button angularjs
body: <p>I want to show the default selected value of radiobutton as 3. My code is as follows:-</p>
  
  <pre><code>&lt;div class="checkbox-group" ng-init="ac.ServiceCode=3"&gt;
  
                  &lt;input type="radio" ng-model="ac.ServiceCode" id="acuOne" value="1" ng-change='GetAcuityLevel(1)'&gt;
                  &lt;label for="acuityone"&gt;1&lt;/label&gt;
  
                   &lt;input type="radio" ng-model="ac.ServiceCode" id="acuTwo" value="2" ng-change='GetAcuityLevel(2)'&gt;
                   &lt;label for="acuitytwo"&gt;2&lt;/label&gt;
  
                   &lt;input type="radio" ng-model="ac.ServiceCode" id="acuThree" value="3" ng-change='GetAcuityLevel(3)'&gt;
                   &lt;label for="acuitythree"&gt;3&lt;/label&gt;
  
                   &lt;input type="radio" ng-model="ac.ServiceCode" id="acuFour" value="4" ng-change='GetAcuityLevel(4)'&gt;
                   &lt;label for="acuityfour"&gt;4&lt;/label&gt;
  
                   &lt;input type="radio" ng-model="ac.ServiceCode" id="acuFive" value="5" ng-change='GetAcuityLevel(5)'&gt;
                   &lt;label for="acuityfive"&gt;5&lt;/label&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>But in this case it always shows 3, when I remove above code it shows correct selected value in radio button. I want if service returns some value (1 to 5) then radio buttons should be selected else default value 3 should be selected.</p>