Forums - C# Corner

Forum guidelines
Md Ghouse

Md Ghouse

  • 1.5k
  • 29
  • 3.3k

why dropdown not showing values

Jul 28 2016 7:44 AM
this is my dropdownList here data comming from db but dropdown not showing plese help me
<select id="ddlDepartment" class="form-control" data-modal="modal" ng-model="employeeDepartment" ng-options="dep.CountryID as dep.CountryName for dep in departments" ng-required="true">
<option value="" disabled selected>--Select Department--</option>
<option data-ng-repeat="dep in departments" value="{{dep.CountryID}}">{{dep.CountryName}}</option>
</select>
 
 
function GetDepartments() {
var departments = Mysercive.BindCntryList();

departments.then(function (dep) {
$scope.departments = dep.data;
}
});

Answers (2)