默认选择值AngularJS?

时间:2014-03-13 12:39:41

标签: javascript angularjs

查看:

 <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';
          });

我的选择列表将如何显示默认值?

0 个答案:

没有答案