<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Angular input[radio] Direktifleri</title>
  

  <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.min.js"></script>
  

  
</head>
<body ng-app="radioOrnek">
  <script>
  angular.module('radioOrnek', [])
    .controller('ornekController', ['$scope', function($scope) {
      $scope.renk = {
        isim: 'blue'
      };
      $scope.ozelValue = {
        "id": "12345",
        "value": "green"
      };
    }]);
</script>
<form name="benimFormum" ng-controller="ornekController">
  <label>
    <input type="radio" ng-model="renk.isim" value="red">
    Red
  </label><br/>
  <label>
    <input type="radio" ng-model="renk.isim" ng-value="ozelValue">
    Green
  </label><br/>
  <label>
    <input type="radio" ng-model="renk.isim" value="blue">
    Blue
  </label><br/>
  <tt>renk = {{renk.isim | json}}</tt><br/>
 </form>
</body>
</html>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.