Angular: Empty Fiddle

http://angularjs.org/

by mark_up

HTML

<div ng-controller="StaticCtrl">
    <input type="radio" ng-model="lunch" value="chicken" name="lunch">
    <input type="radio" ng-model="lunch" value="beef" name="lunch">
    <input type="radio" ng-model="lunch" value="fish" name="lunch">  
    {{lunch}}
</div>
<hr>

    
    
<div ng-controller="DynamicCtrl">
    <input type="radio" ng-model="lunch" ng-repeat="m in meat" value="m" name="lunch">    
    {{lunch}}
</div>

JavaScript

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

function StaticCtrl($scope) {
    $scope.lunch= 'chicken';
}

function DynamicCtrl($scope) {
    $scope.meat = ['chicken', 'beef', 'fish'];
    $scope.lunch = 'chicken';
}