I am building an app where I will be having radio buttons something like gender.
all the data is coming from the server and even which radio button need to be checked also.
I am keeping that data in ng-checked but it is not updating the ng-model.
by using that model I am working on some other divs to be shown because ng-model is not updating I could not show that data.
Can anybody help me to solve this issue? or any suggestions that custom directives can update the ng-model by taking the data from the ng-change or ng-checked
even I am setting ng-model dynamically, like this everything in ng-repeat
<input type="{{controls.type}}" class="form-control input-lg mandatory mapping_input radio" id="{{$parent.$parent.$index}}_{{controls.id}}" a ng-model="formData[$parent.$parent.$index][controls.name]" value="{{controls.id}}" name="control_{{$parent.$parent.$index}}_{{controls.name}}" ng-class="{checkbox_item : element.type == 'checkbox'}" autocomplete="off" ng-checked="setthecheckboxvalue(formData[$parent.$parent.$index][controls.name],controls.value)" ng-required="controls.mandatory">