How to get selected radio button value in AngularJS?

By Hardik Savani | August 9, 2019 | Category : Angular

In this example, i will help to get checked radio button value in angular js app. we can get selected radio button value in controller of angular.

Here we will create simple example. we will create simple for and submit button. When you click on submit button then one angular controller method will call and we will get selected radio button value using angularjs $scope variable.

Let's see bellow example, so you can use in your app.


<!doctype html>



<title>How to get selected radio button value in AngularJS? -</title>

<script src=""></script>


<body ng-app='myapp'>

<h1>How to get selected radio button value in AngularJS? -</h1>

<div ng-controller="myCtrl">

<div class="radio">

<label><input type="radio" ng-model='sex' ng-value='"male"' name="sex">Male</label>


<div class="radio">

<label><input type="radio" ng-model='sex' ng-value='"female"' name="sex">Female</label>


<button ng-click="submitResult()">See Result</button>



<script type="text/javascript">

var app = angular.module('myapp', []);

app.controller('myCtrl', function ($scope, $location) {

$ = 'male';

$scope.submitResult = function() {






I hope it can help you...

Tags : Angular

Hardik Savani
My name is Hardik Savani. I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.
Follow Me: Github Twitter
***Do you want me hire for your Project Work? Then Contact US.

We are Recommending you: