guyz
March 11, 2014, 3:42pm
1
<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.
guyz
March 11, 2014, 4:20pm
2
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>
guyz
March 11, 2014, 5:49pm
4
Instead of using html to set the checked value, I added $scope.radio_param = "value I want checked by default"
1 Like