Radio button checked value not working

<input type="radio" name="sex" value="m" data-ng-model="param_sex" id="sexm" checked="checked" class="ng-pristine ng-valid disable-user-behavior">

I’m wondering where the class="ng-pristine ng-valid disable-user-behavior" comes from and if it’s messing with the checked=“checked” value that doesn’t actually check the box.

Seems only to present a problem when data-ng-model is present

Have you tried with just <ion-checkbox>?

        <ion-checkbox ng-repeat="item in devList"
                      ng-model="item.checked" 
                      ng-checked="item.checked">
          {{ item.text }}
        </ion-checkbox>

Instead of using html to set the checked value, I added $scope.radio_param = "value I want checked by default"

1 Like