AngularJS, ngRepeat, and default checked radio button
When using ngRepeat, 3 pairs of radio buttons can be created using the following code: <div ng-repeat="i in [1,2,3]"> <input type="radio" name="radio{{i}}" id="radioA{{i}}" value="A" checked> A <input type="radio" name="radio{{i}}" id="radioB{{i}}" value="B"> B </div> For some reason, only the last pair of radio buttons generated by ngRepeat is affected by the checked attribute. Is this because of the way AngularJS updates the view? Is there a way to fix it? That is possibly because when browser renders the radio buttons (as ng-repeat expands) all your radios have same name i.e "name="radio{{i