查看:
<select class="medium validate[required]" ng-model="dept" ng-options="dept.name for dept in agentdepart">
<option value="">---Choose Department---</option>
</select>
型号:
$http.get('/admin-data?id='+$rootScope.adminid).success(function(data)
{
$scope.mailid=data.mailid;
$scope.dept='data.department.name';
});
我的选择列表将如何显示默认值?