Angular: Empty Fiddle

http://angularjs.org/

HTML

<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<div ng-controller="MyCtrl">
  <select ng-model="selectedValue" required="required"
  ng-options="option.id as option.value for option in defaults">
</select>
</div>

JavaScript

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

//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});

function MyCtrl($scope) {
    
    $scope.selectedValue = 22;
     $scope.defaults = [
        {
            id : 10,
            value : "string 1"
        },
        {
            id : 22,
            value : "string 2"
        }
    ];
}