I have two radio buttons pass and fail.
How to get value of selected radio button.
Inside of Directive and ng-repeat above solutions will not work
Here is the best way to get selected value inside directive :
Template : '{{item.ActivityHeaderId}} '
controller: function ($scope) {
$scope.RadioChange = function (s) {
$scope.SelectedExistingReportData = s;
};
$scope.setWeldDataToGrid = function () {
alert($scope.SelectedExistingReportData);
// $('.modal').modal('hide');
}
}
''