Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="MyApplication">
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body ng-controller="MeetingController">
 
<select name="SelectedMeetingPlaceId" ng-model="FormData.SelectedMeetingPlaceId" ng-options="place.Value as place.Text for place in MeetingPlacesList"></select>
</body>
</html>
 
    var model = {"MeetingPlacesList":[{"Disabled":false,"Group":null,"Selected":false,"Text":"Place 991","Value":"991"},{"Disabled":false,"Group":null,"Selected":false,"Text":"Place 993","Value":"993"},{"Disabled":false,"Group":null,"Selected":false,"Text":"Place 995","Value":"995"}]};
var myApplication = angular.module('MyApplication', []);
    myApplication.controller('MeetingController', function ($scope, $http, $filter) {        
        $scope.MeetingPlacesList = model.MeetingPlacesList;
        $scope.FormData = {};
        $scope.FormData.SelectedMeetingPlaceId = '995'; // it doeasn't work
    });
Output

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

Dismiss x
public
Bin info
mohamedriaspro
0viewers