AngularJS Simple Example

HTML

<div ng-app ng-controller="AppController">
    <select ng-model="employee.name" ng-options='item.name as (item.name + " - " + item.post) for item in employees'>
<option value="">select</option>
</select>

{{employee}}
</div>

JavaScript

function AppController($scope, $timeout) {
    $scope.employees = [
      {name:"Mehtab",post:"SE"}, 
      {name:"Punit", post:"PM"}, 
      {name:"Ashutosh", post:"SSE"}
    ];
    
    $scope.employee = {"name":"Punit","post":"PM"};
}