<label> <input type="radio" ng-model="approvedRevisions" ng-change="load(0)"> Opt1 </label> <label> <input type="radio" value ng-model="approvedRevisions" ng-change="load(1)"> Opt2 </label> <input type="button" value="Change radio" ng-click="changeRadio()"> Controller:
$scope.load = function (flag) { if (flag) { alert('2'); } else { alert('1'); } }; $scope.changeRadio = function () { Как правильно выбрать радио Opt1 ? }; When calling a particular function (in this case, when the button is pressed), the radio band should switch to Opt1. How to do it right?
Here is an example.