<body ng-app="valueExample">
 <form ng-controller="ExampleController">
   <h2>Hangisi senin favorin</h2>
     <label ng-repeat="name in names" for="{{isim}}">
       {{isim}}
       <input type="radio"
              ng-model="my.favorite"
              ng-value="name"
              id="{{isim}}"
              name="favorite">
     </label>
   <div>favorin {{my.favorite}}</div>
 </form>
</body>
angular.module('valueExample', [])
  .controller('ExampleController', ['$scope', function($scope) {
    $scope.names = ['pizza', 'tek boynuzlu at', 'robotlar'];
    $scope.my = { favorite: 'pizza' };
  }]);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. //cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.2/angular.min.js