<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' };
}]);
This Pen doesn't use any external CSS resources.