title: Default select value AngularJS?
body: <p>View:</p>
  
  <pre><code> &lt;select class="medium validate[required]" ng-model="dept" ng-options="dept.name for dept in agentdepart"&gt;
         &lt;option value=""&gt;---Choose Department---&lt;/option&gt;
   &lt;/select&gt;
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code> $http.get('/admin-data?id='+$rootScope.adminid).success(function(data)
        {
  
  $scope.mailid=data.mailid;
  
  $scope.dept='data.department.name';
            });
  </code></pre>
  
  <p>how my select list will appear with default value ?</p>