Angular select impl

HTML

<div ng-app="myApp" ng-controller="myController">
  <select ng-model="entity.selected">
    <option value="{{ent.entityTypeId}}" ng-repeat="ent in entityTypes">{{ent.entityTypeName}}</option>
  </select>
  Selected entity id  {{entity.selected}}
</div>

JavaScript

angular.module("myApp", [])
  .controller("myController", ["$scope", function ($scope) {
    $scope.entityTypes = [{
      entityTypeId: 3,
      entityTypeName: "Branch of Legal Entity"
    }, {
      entityTypeId: 1,
      entityTypeName: "Legal Entity"
    }, {
      entityTypeId: 2,
      entityTypeName: "Notional Entity"
    }];
    $scope.entity = {
      selected: 2
    };
  }]);