I am attempting to get the value of a radio button when changed / selected.

There are 6 sets of true false so 12 radio inputs like:

<input type="radio" ng-model="data.formData.alert" value="1" ng-value="1" 
ng-change='radioValue(value)'>
<input type="radio" ng-model="data.formData.alert" value="0" ng-value="0" 
ng-change='radioValue(value)'>

in the controller:

$scope.radioValue = function(value){
      console.log(value); //undefined
    }

Eventually I will also need to get the ng-model that changed so I can send 
it off to the backend.

Any tips help would be great.

Thanks,

Dave


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to