I get data from AJAX query in Angular JS. It is information about user. There are two input radio button in page:
<input type="radio" ng-model="sex" value="1">
<input type="radio" ng-model="sex" value="2">
From AJAX I get field {'sex' : '1'}. How I can check input with value = 1 and set it value to ng-model?