Populate dropdown value inside ng-repeat
<p>I am facing an issue with my Angular code, while populating the dropdown inside a HTML table (Code given below).
Could you please help me with what should be done inside modify() to populate the dropdown ?</p>

<p><strong>HTML Code:</strong></p>

<pre><code>&lt;table class="table" ng-app="empApp" ng-controller="employeeController"&gt;
&lt;thead&gt;
    &lt;tr class="info"&gt;
        &lt;th&gt;Emp Name&lt;/th&gt;
        &lt;th&gt;Status&lt;/th&gt;
        &lt;th colspan="2"&gt;&amp;nbsp;&lt;/th&gt;
    &lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr ng-repeat="emp in employees"&gt;
  &lt;td&gt;
    &lt;div ng-hide="editingData[emp.id]"&gt;{{ emp.name }}&lt;/div&gt;
    &lt;div ng-show="editingData[emp.id]"&gt;&lt;input type="text" ng-model="emp.name" /&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/td&gt;
  &lt;td&gt;
    &lt;div ng-hide="editingData[emp.id]"&gt;{{ emp.status.name }}&lt;/div&gt;
    &lt;select ng-show="editingData[emp.id]" class="form-control" ng-model="emp.status" 
    ng-options="status.id  as status.name for status in statuses"&gt;&lt;/select&gt;
  &lt;/td&gt;
  &lt;td colspan="2"&gt;
    &lt;div class="btn-group"&gt;
        &lt;button type="submit" class="btn btn-primary" ng-hide="editingData[employee.id]" ng-click="modify(emp)"&gt;Modify&lt;/button&gt;&amp;nbsp;
        &lt;button type="submit" class="btn btn-primary" ng-show="editingData[employee.id]" ng-click="update(emp)"&gt;Update&lt;/button&gt;&amp;nbsp;
    &lt;/div&gt;
 &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</code></pre>

<p><strong>Javascript Code:</strong></p>

<pre><code>    var empApp = angular.module("empApp", []);
    empApp.controller('employeeController', function($scope, $http) {

    $scope.statuses = [{"id":1,"name":"Active"}, {"id":1,"name":"Inactive"}];

    $scope.employees = [{"id":1,"name":"Mark","status":{"id":1,"name":"Active"}},{"id":2,"name":"Sara","status":{"id":2,"name":"Inactive"}}]; 
    $scope.editingData = {};

    for (var i = 0, length = $scope.employees.length; i &lt; length; i++) {
        $scope.editingData[$scope.employees[i].id] = false;
    }

    $scope.modify = function(employee){
        $scope.editingData[employee.id] = true;
        //Set Employee Status correctly here to populate the dropdown

    };
  });
</code></pre>

<p>My problem is I am NOT able to populate the dropdown with the existing value, as show in the diagram below:
<a href="https://i.stack.imgur.com/VseyM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VseyM.png" alt="enter image description here"></a></p>