Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
</head>
<body ng-app="myApp">
  <div ng-controller="mainCtrl">
    
  <select ng-model="selected" ng-options="name for (name, value) in items"></select>
  
  </div>
</body>
</html>
 
var app = angular.module('myApp',[]);
app.controller('mainCtrl',function($scope){
  $scope.items = {
    'one': 30,
    'two': 27,
    'three': 50,
    'four': 15,
    'five': 27,
    'six': 30
   };
  //$scope.selected = $scope.items.['one'];
  
})
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers